Prevent browser_526613.js from still closing the main browser window

This commit is contained in:
Dão Gottwald 2009-11-12 21:18:45 +01:00
parent 8431b4515a
commit ecc36f002a

View File

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