mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Prevent browser_526613.js from still closing the main browser window
This commit is contained in:
parent
8431b4515a
commit
ecc36f002a
@ -85,7 +85,7 @@ function test() {
|
||||
// let the first window be focused (see above)
|
||||
var fm = Cc["@mozilla.org/focus-manager;1"].getService(Ci.nsIFocusManager);
|
||||
if (window == fm.activeWindow) {
|
||||
ss.setBrowserState(oldState);
|
||||
executeSoon(function () ss.setBrowserState(oldState));
|
||||
} else {
|
||||
window.addEventListener("activate", function () {
|
||||
window.removeEventListener("activate", arguments.callee, false);
|
||||
|
Loading…
Reference in New Issue
Block a user