Bug 985777 - always allow internal switchToTabHavingURI to switch to other windows, including private ones, r=dao

This commit is contained in:
Gijs Kruitbosch 2014-03-20 13:53:46 +00:00
parent f7ebf77cf1
commit c14dbd9e87

View File

@ -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];