Bug 1166362 - Let SessionStore ignore <xul:browser>s without a permanentKey property r=Gijs

This commit is contained in:
Tim Taubert 2015-05-19 13:47:32 -04:00
parent 9157019656
commit 95648e26fd

View File

@ -812,7 +812,7 @@ let SessionStoreInternal = {
this.onBrowserCrashed(win, target);
break;
case "XULFrameLoaderCreated":
if (target.tagName == "browser" && target.frameLoader) {
if (target.tagName == "browser" && target.frameLoader && target.permanentKey) {
this._lastKnownFrameLoader.set(target.permanentKey, target.frameLoader);
}
break;