Index: lib/appSupport.js |
=================================================================== |
--- a/lib/appSupport.js |
+++ b/lib/appSupport.js |
@@ -222,17 +222,17 @@ switch (application) |
return (window.document.documentElement.getAttribute("windowtype") == "navigator:browser"); |
}; |
exports.getBrowser = (window) => window.gBrowser; |
exports.addTab = function ff_addTab(window, url, event) |
{ |
if (event) |
- window.openNewTabWith(url, exports.getBrowser(window).contentDocument, null, event, false); |
+ window.openNewTabWith(url, null, null, event, false); |
else |
window.gBrowser.loadOneTab(url, {inBackground: false}); |
}; |
exports.contentContextMenu = "contentAreaContextMenu"; |
exports.defaultToolbarPosition = { |
parent: "nav-bar" |
@@ -270,17 +270,17 @@ switch (application) |
{ |
let type = window.document.documentElement.getAttribute("windowtype"); |
return (type == "navigator:browser" || type == "mail:3pane" || type == "mail:messageWindow"); |
}; |
exports.addTab = function sm_addTab(window, url, event) |
{ |
if (event || !("gBrowser" in window)) |
- window.openNewTabWith(url, ("gBrowser" in window ? window.gBrowser.contentDocument : null), null, event, false); |
+ window.openNewTabWith(url, null, null, event, false); |
else |
window.gBrowser.loadOneTab(url, {inBackground: false}); |
}; |
exports.getBrowser = function sm_getBrowser(window) |
{ |
if ("gBrowser" in window) |
return window.gBrowser; |