From 7764fd60db722a18df7a9abc1e01bb168b443527 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Fri, 2 Dec 2011 10:19:45 -0800 Subject: [PATCH] Bug 707180 - JavaScript strict warning: 'Reference to undefined property aBrowser.__SS_restoreState' [r=zpao] --- browser/components/sessionstore/src/nsSessionStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/components/sessionstore/src/nsSessionStore.js b/browser/components/sessionstore/src/nsSessionStore.js index 66e9a29ec17..c2da560722b 100644 --- a/browser/components/sessionstore/src/nsSessionStore.js +++ b/browser/components/sessionstore/src/nsSessionStore.js @@ -4525,7 +4525,8 @@ let gRestoreTabsProgressListener = { onStateChange: function (aBrowser, aWebProgress, aRequest, aStateFlags, aStatus) { // Ignore state changes on browsers that we've already restored and state // changes that aren't applicable. - if (aBrowser.__SS_restoreState == TAB_STATE_RESTORING && + if (aBrowser.__SS_restoreState && + aBrowser.__SS_restoreState == TAB_STATE_RESTORING && aStateFlags & Ci.nsIWebProgressListener.STATE_STOP && aStateFlags & Ci.nsIWebProgressListener.STATE_IS_NETWORK && aStateFlags & Ci.nsIWebProgressListener.STATE_IS_WINDOW) {