Skip to content

Commit 1adf2ef

Browse files
committed
Avoid "_getTabForContentWindow is not a function"
1 parent fdd3548 commit 1adf2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/https-everywhere.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ HTTPSEverywhere.prototype = {
361361
.getInterface(Ci.nsIDOMWindow);
362362
// this is the gBrowser object of the firefox window this tab is in
363363
var gBrowser = aDOMWindow.gBrowser;
364-
if (gBrowser) {
364+
if (gBrowser && gBrowser._getTabForContentWindow) {
365365
var aTab = gBrowser._getTabForContentWindow(contentWindow.top);
366366
// this is the clickable tab xul element, the one found in the tab strip
367367
// of the firefox window, aTab.linkedBrowser is same as browser var above

0 commit comments

Comments
 (0)