diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-04-07 12:35:03 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-04-07 12:35:03 -0400 |
commit | 59fb23c6665b6f946e558fee2ada3eb1f8de438f (patch) | |
tree | 16c3733ae0bcee1dc73a8a051d7a0942588251e5 | |
parent | f887139a974edc2a3c03c73eafb233a00569fdd0 (diff) | |
download | UXP-59fb23c6665b6f946e558fee2ada3eb1f8de438f.tar UXP-59fb23c6665b6f946e558fee2ada3eb1f8de438f.tar.gz UXP-59fb23c6665b6f946e558fee2ada3eb1f8de438f.tar.lz UXP-59fb23c6665b6f946e558fee2ada3eb1f8de438f.tar.xz UXP-59fb23c6665b6f946e558fee2ada3eb1f8de438f.zip |
[PALEMOON] Fix some errors in tabbrowser.xml by adding usercontextid where needed
-rw-r--r-- | application/palemoon/base/content/tabbrowser.xml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index 3e30c2ba1..ef0af5afb 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -707,7 +707,8 @@ let autocomplete = this.mTabBrowser._placesAutocomplete; if (this.mBrowser.registeredOpenURI) { - autocomplete.unregisterOpenPage(this.mBrowser.registeredOpenURI); + autocomplete.unregisterOpenPage(this.mBrowser.registeredOpenURI, + this.mBrowser.getAttribute("usercontextid") || 0); delete this.mBrowser.registeredOpenURI; } // Tabs in private windows aren't registered as "Open" so @@ -715,7 +716,8 @@ if (!isBlankPageURL(aLocation.spec) && (!PrivateBrowsingUtils.isWindowPrivate(window) || PrivateBrowsingUtils.permanentPrivateBrowsing)) { - autocomplete.registerOpenPage(aLocation); + autocomplete.registerOpenPage(aLocation, + this.mBrowser.getAttribute("usercontextid") || 0); this.mBrowser.registeredOpenURI = aLocation; } } @@ -1865,7 +1867,8 @@ this.mTabListeners[aTab._tPos].destroy(); if (browser.registeredOpenURI && !aTabWillBeMoved) { - this._placesAutocomplete.unregisterOpenPage(browser.registeredOpenURI); + this._placesAutocomplete.unregisterOpenPage(browser.registeredOpenURI, + browser.getAttribute("usercontextid") || 0); delete browser.registeredOpenURI; } @@ -2209,7 +2212,8 @@ <![CDATA[ // If the current URI is registered as open remove it from the list. if (aOurBrowser.registeredOpenURI) { - this._placesAutocomplete.unregisterOpenPage(aOurBrowser.registeredOpenURI); + this._placesAutocomplete.unregisterOpenPage(aOurBrowser.registeredOpenURI, + aOurBrowser.getAttribute("usercontextid") || 0); delete aOurBrowser.registeredOpenURI; } @@ -3066,7 +3070,8 @@ for (var i = 0; i < this.mTabListeners.length; ++i) { let browser = this.getBrowserAtIndex(i); if (browser.registeredOpenURI) { - this._placesAutocomplete.unregisterOpenPage(browser.registeredOpenURI); + this._placesAutocomplete.unregisterOpenPage(browser.registeredOpenURI, + browser.getAttribute("usercontextid") || 0); delete browser.registeredOpenURI; } browser.webProgress.removeProgressListener(this.mTabFilters[i]); |