Bug 1705547 - Null check the SessionHistory object before attempting to collect, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D112290
This commit is contained in:
@@ -1243,7 +1243,8 @@ var SessionStoreInternal = {
|
||||
|
||||
if (
|
||||
Services.appinfo.sessionHistoryInParent &&
|
||||
aBrowsingContext === aBrowsingContext.top
|
||||
aBrowsingContext === aBrowsingContext.top &&
|
||||
aBrowsingContext.sessionHistory
|
||||
) {
|
||||
if (!this._browserSHistoryListener.has(aBrowser.permanentKey)) {
|
||||
this.addSHistoryListener(aBrowser, aBrowsingContext);
|
||||
|
||||
Reference in New Issue
Block a user