зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1073826 - Fix isBrowserPrivate on Android (r=margaret)
This commit is contained in:
Родитель
23fbe5d28f
Коммит
0d587be093
|
@ -34,7 +34,15 @@ this.PrivateBrowsingUtils = {
|
|||
},
|
||||
|
||||
isBrowserPrivate: function(aBrowser) {
|
||||
return this.isWindowPrivate(aBrowser.ownerDocument.defaultView);
|
||||
let chromeWin = aBrowser.ownerDocument.defaultView;
|
||||
if (chromeWin.gMultiProcessBrowser) {
|
||||
// In e10s we have to look at the chrome window's private
|
||||
// browsing status since the only alternative is to check the
|
||||
// content window, which is in another process.
|
||||
return this.isWindowPrivate(chromeWin);
|
||||
} else {
|
||||
return this.privacyContextFromWindow(aBrowser.contentWindow).usePrivateBrowsing;
|
||||
}
|
||||
},
|
||||
|
||||
privacyContextFromWindow: function pbu_privacyContextFromWindow(aWindow) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче