Bug 1073826 - Fix isBrowserPrivate on Android (r=margaret)

This commit is contained in:
Bill McCloskey 2014-09-30 13:53:09 -07:00
Родитель 23fbe5d28f
Коммит 0d587be093
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -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) {