mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
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:
parent
f9ef00541a
commit
2523189129
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user