Bug 949227 - browser_bug609700.js | Found an unexpected tab at the end of test run: about:blank, r=gavin
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Sat, 14 Dec 2013 01:15:23 +0200
changeset 160481 21e8756700689051d914a0d7b56c007d1e3a4471
parent 160480 b2de3b90184a11d334feee90d34e67b9cf3c6e72
child 160482 0044fa6c7fda31abd338b55320bfec7805a89034
push id25834
push userphilringnalda@gmail.com
push dateSun, 15 Dec 2013 02:20:53 +0000
treeherdermozilla-central@9fcc6330dc69 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs949227, 609700
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 949227 - browser_bug609700.js | Found an unexpected tab at the end of test run: about:blank, r=gavin
browser/base/content/test/general/browser_bug609700.js
--- a/browser/base/content/test/general/browser_bug609700.js
+++ b/browser/base/content/test/general/browser_bug609700.js
@@ -2,18 +2,17 @@ function test() {
   waitForExplicitFinish();
 
   Services.ww.registerNotification(function (aSubject, aTopic, aData) {
     if (aTopic == "domwindowopened") {
       Services.ww.unregisterNotification(arguments.callee);
 
       ok(true, "duplicateTabIn opened a new window");
 
-      aSubject.addEventListener("load", function () {
-        aSubject.removeEventListener("load", arguments.callee, false);
+      whenDelayedStartupFinished(aSubject, function () {
         executeSoon(function () {
           aSubject.close();
           finish();
         });
       }, false);
     }
   });