From 0f1c5c64f93b5b69a3b0bb1319e9c7203b310aa5 Mon Sep 17 00:00:00 2001 From: Kazuhiro Hiramatsu Date: Tue, 16 Nov 2010 13:09:22 +0100 Subject: [PATCH] fixed tab storing when browser is going to close --- content/restclientOverlay.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/restclientOverlay.js b/content/restclientOverlay.js index ff5c2da..9953aa0 100644 --- a/content/restclientOverlay.js +++ b/content/restclientOverlay.js @@ -100,8 +100,10 @@ ShutdownObserver.prototype = { var tabWindow = mainWindow.getBrowser().getBrowserForTab( container.childNodes[i]). contentWindow.wrappedJSObject; - + + if (typeof tabWindow.restclient != "undefined") { tabWindow.restclient.storeRestClientTab(container.childNodes[i]); + } } } }