mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
browser_490040.js cleanup
This commit is contained in:
parent
103ff36591
commit
0cb8962795
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user