browser_library_open_leak.js File Reference

Go to the source code of this file.

Functions

function test ()
 

Variables

let ww
 
let windowObserver
 

Function Documentation

function test ( )

Definition at line 68 of file browser_library_open_leak.js.

Here is the call graph for this function:

Variable Documentation

let windowObserver
Initial value:
= {
observe: function(aSubject, aTopic, aData) {
if (aTopic === "domwindowopened") {
ww.unregisterNotification(this);
let win = aSubject.QueryInterface(Ci.nsIDOMWindow);
win.addEventListener("load", function onLoad(event) {
win.removeEventListener("load", onLoad, false);
executeSoon(function () {
ok(true, "Library has been correctly opened");
win.close();
finish();
});
}, false);
}
}
}
var event
Lastfm onLoad
Definition: mini.js:36
const Ci
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe

Definition at line 51 of file browser_library_open_leak.js.

let ww
Initial value:
= Cc["@mozilla.org/embedcomp/window-watcher;1"].
getService(Ci.nsIWindowWatcher)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Bug 474831 https://bugzilla.mozilla.org/show_bug.cgi?id=474831

Tests for leaks caused by simply opening and closing the Places Library window. Opens the Places Library window, waits for it to load, closes it, and finishes.

Definition at line 48 of file browser_library_open_leak.js.