mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 985777 - always allow internal switchToTabHavingURI to switch to other windows, including private ones, r=dao
This commit is contained in:
parent
f7ebf77cf1
commit
c14dbd9e87
@ -6855,14 +6855,6 @@ let gRemoteTabsUI = {
|
||||
function switchToTabHavingURI(aURI, aOpenNew, aOpenParams) {
|
||||
// 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 and they are not in permanent private borwsing mode
|
||||
if ((PrivateBrowsingUtils.isWindowPrivate(window) ||
|
||||
PrivateBrowsingUtils.isWindowPrivate(aWindow)) &&
|
||||
!PrivateBrowsingUtils.permanentPrivateBrowsing) {
|
||||
return false;
|
||||
}
|
||||
|
||||
let browsers = aWindow.gBrowser.browsers;
|
||||
for (let i = 0; i < browsers.length; i++) {
|
||||
let browser = browsers[i];
|
||||
|
Loading…
Reference in New Issue
Block a user