Bug 1437382 - Part 6 - Switch to using PrivateBrowsing helper method in session store. r?esawin
As far as I can tell, that line dates back to approximately the time Private-
BrowsingUtils were introduced in the first place.
MozReview-Commit-ID: BLn13X7DVJt
--- a/mobile/android/components/SessionStore.js
+++ b/mobile/android/components/SessionStore.js
@@ -1110,17 +1110,17 @@ SessionStore.prototype = {
}
let tabData = {};
let tab = aWindow.BrowserApp.getTabForBrowser(aBrowser);
tabData.entries = aHistory.entries;
tabData.index = aHistory.index;
tabData.attributes = { image: aBrowser.mIconURL };
tabData.desktopMode = tab.desktopMode;
- tabData.isPrivate = aBrowser.docShell.QueryInterface(Ci.nsILoadContext).usePrivateBrowsing;
+ tabData.isPrivate = PrivateBrowsingUtils.isBrowserPrivate(aBrowser);
tabData.tabId = tab.id;
tabData.parentId = tab.parentId;
aBrowser.__SS_data = tabData;
},
_collectWindowData: function ss__collectWindowData(aWindow) {
// Ignore windows not tracked by SessionStore