We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d4c8a1 commit 2de5808Copy full SHA for 2de5808
src/components/https-everywhere.js
@@ -261,7 +261,7 @@ HTTPSEverywhere.prototype = {
261
_xpcom_categories: [
262
{
263
category: "app-startup",
264
- },
+ }
265
],
266
267
// QueryInterface implementation, e.g. using the generateQI helper
@@ -361,7 +361,8 @@ HTTPSEverywhere.prototype = {
361
try {
362
var loadContext = nc.getInterface(CI.nsILoadContext);
363
dump("loadContext = " + loadContext + "\n");
364
- var browser = loadContext.topFrameElement;
+ let domWin = loadContext.associatedWindow;
365
+ var browser = gBrowser.getBrowserForDocument(domWin.top.document);
366
} catch(e) {
367
this.log(INFO, "No <browser> element associated with request: " + channel.URI.spec);
368
return null;
0 commit comments