Bug 827084 - A tab being moved to a different window shouldn't prevent the page from opening dialogs. r=enndeakin

This commit is contained in:
Dão Gottwald 2014-01-15 15:53:20 +01:00
parent f9ef00541a
commit 2523189129

View File

@ -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);