From bd14bee44a5d3e849693a2b2e19b05536fbafc93 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Mon, 30 Mar 2015 10:22:45 +0200 Subject: [PATCH] Bug 1156722 - Check for window.gBrowser instead of window.getBrowser r=smacleod --- browser/components/sessionstore/SessionStore.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/components/sessionstore/SessionStore.jsm b/browser/components/sessionstore/SessionStore.jsm index 704584961278..365d862aa288 100644 --- a/browser/components/sessionstore/SessionStore.jsm +++ b/browser/components/sessionstore/SessionStore.jsm @@ -1635,8 +1635,8 @@ let SessionStoreInternal = { if (!aTab.ownerDocument.defaultView.__SSi) { throw Components.Exception("Default view is not tracked", Cr.NS_ERROR_INVALID_ARG); } - if (!aWindow.getBrowser) { - throw Components.Exception("Invalid window object: no getBrowser", Cr.NS_ERROR_INVALID_ARG); + if (!aWindow.gBrowser) { + throw Components.Exception("Invalid window object: no gBrowser", Cr.NS_ERROR_INVALID_ARG); } // Flush all data queued in the content script because we will need that