Skip to content

Commit

Permalink
Don't override gBrowser.loadURIWithFlags() in private windows
Browse files Browse the repository at this point in the history
(enhancement for #42, also related to #46: NoScript wraps the same function after some delay and don't cleanup link to our wrapper)
  • Loading branch information
Infocatcher committed May 1, 2013
1 parent 1d9ac0b commit 148ce9f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2339,9 +2339,11 @@ API.prototype = {
_onFirstPrivateTab: function(window, tab) {
this._onFirstPrivateTab = function() {};
_log("First private tab in window");
window.setTimeout(function() {
privateTabInternal.ensureTabBrowserLoadURIPatched(window);
}, 50);
if(!privateTabInternal.isPrivateWindow(window)) {
window.setTimeout(function() {
privateTabInternal.ensureTabBrowserLoadURIPatched(window);
}, 50);
}
},
// Public API:
isTabPrivate: function privateTab_isTabPrivate(tab) {
Expand Down

0 comments on commit 148ce9f

Please sign in to comment.