browser_490040.js cleanup

This commit is contained in:
Dão Gottwald 2009-11-28 09:58:11 +01:00
parent 103ff36591
commit 0cb8962795

View File

@ -66,12 +66,16 @@ function test() {
gPrefService.setIntPref("browser.sessionstore.max_windows_undo",
curClosedWindowCount + 1);
var origWin;
let windowObserver = {
observe: function(aSubject, aTopic, aData) {
let theWin = aSubject.QueryInterface(Ci.nsIDOMWindow);
if (origWin && theWin != origWin)
return;
switch(aTopic) {
switch (aTopic) {
case "domwindowopened":
origWin = theWin;
theWin.addEventListener("load", function () {
theWin.removeEventListener("load", arguments.callee, false);
executeSoon(function() {