mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 858916 - Switch-to-tab does not work on always private browsing mode. r=Unfocused,f=jdm
This commit is contained in:
parent
4b7c54972f
commit
3be5f624df
@ -6754,8 +6754,10 @@ let gPrivateBrowsingUI = {
|
||||
}
|
||||
}
|
||||
|
||||
if (gURLBar) {
|
||||
if (gURLBar &&
|
||||
!PrivateBrowsingUtils.permanentPrivateBrowsing) {
|
||||
// Disable switch to tab autocompletion for private windows
|
||||
// (not for "Always use private browsing" mode)
|
||||
gURLBar.setAttribute("autocompletesearchparam", "");
|
||||
}
|
||||
}
|
||||
@ -6778,9 +6780,10 @@ function switchToTabHavingURI(aURI, aOpenNew) {
|
||||
// This will switch to the tab in aWindow having aURI, if present.
|
||||
function switchIfURIInWindow(aWindow) {
|
||||
// Only switch to the tab if neither the source and desination window are
|
||||
// private.
|
||||
if (PrivateBrowsingUtils.isWindowPrivate(window) ||
|
||||
PrivateBrowsingUtils.isWindowPrivate(aWindow)) {
|
||||
// private and they are not in permanent private borwsing mode
|
||||
if ((PrivateBrowsingUtils.isWindowPrivate(window) ||
|
||||
PrivateBrowsingUtils.isWindowPrivate(aWindow)) &&
|
||||
!PrivateBrowsingUtils.permanentPrivateBrowsing) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -643,7 +643,8 @@
|
||||
// Tabs in private windows aren't registered as "Open" so
|
||||
// that they don't appear as switch-to-tab candidates.
|
||||
if (!isBlankPageURL(aLocation.spec) &&
|
||||
!PrivateBrowsingUtils.isWindowPrivate(window)) {
|
||||
(!PrivateBrowsingUtils.isWindowPrivate(window) ||
|
||||
PrivateBrowsingUtils.permanentPrivateBrowsing)) {
|
||||
autocomplete.registerOpenPage(aLocation);
|
||||
this.mBrowser.registeredOpenURI = aLocation;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user