From 3290d8f8cf1cb3bfe3eec82191cad29dd0668ac9 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 21 Mar 2011 20:44:39 +0000 Subject: [PATCH] better handling of restart with tabs restored in Fx 4 --- chrome/content/zotero/tab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/tab.js b/chrome/content/zotero/tab.js index b829270fa..6b0cb5b3d 100644 --- a/chrome/content/zotero/tab.js +++ b/chrome/content/zotero/tab.js @@ -104,7 +104,8 @@ var ZoteroTab = new function() if(tabs.length > 1) { window.close(); } else { - this.containerWindow.BrowserGoHome(); + if(Zotero.isFx4) this.containerWindow.gBrowser.unpinTab(tabs[0]); + document.location.replace(this.containerWindow.gHomeButton.getHomePage()); } return; }