mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
Finally fix unit test oranges: stop observing windows at the end of the test (browser_sort_in_library.js)
This commit is contained in:
1 parent
d066d621d0
commit
1279341fc1
1 file changed
+1
@@ -274,6 +274,7 @@ function test() {
|
||||
let windowObserver = {
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user