From 25231891299d8a087c2a466648b64af2936fd4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Wed, 15 Jan 2014 15:53:20 +0100 Subject: [PATCH] Bug 827084 - A tab being moved to a different window shouldn't prevent the page from opening dialogs. r=enndeakin --- browser/base/content/tabbrowser.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index a7b638707e0a..78ac35db97de 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -1925,7 +1925,7 @@ evt.initUIEvent("TabClose", true, false, window, aTabWillBeMoved ? 1 : 0); aTab.dispatchEvent(evt); - if (!gMultiProcessBrowser) { + if (!aTabWillBeMoved && !gMultiProcessBrowser) { // Prevent this tab from showing further dialogs, since we're closing it var windowUtils = browser.contentWindow.QueryInterface(Ci.nsIInterfaceRequestor). getInterface(Ci.nsIDOMWindowUtils);