Bug 949227 - browser_bug609700.js | Found an unexpected tab at the end of test run: about:blank. r=gavin, a=test-only
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Sat, 14 Dec 2013 01:15:23 +0200
changeset 148757 f1baf5f642c85a086573956d2e3aa9271d275cea
parent 148756 7b864c2babb2453b4ef7be106da6fcfbe1ece2ef
child 148758 497e92f6d01e132e9b58249bf3b3faab8f1f1be2
push id117
push userryanvm@gmail.com
push dateWed, 18 Dec 2013 17:14:39 +0000
reviewersgavin, test-only
bugs949227, 609700
milestone24.2.0
Bug 949227 - browser_bug609700.js | Found an unexpected tab at the end of test run: about:blank. r=gavin, a=test-only
browser/base/content/test/browser_bug609700.js
--- a/browser/base/content/test/browser_bug609700.js
+++ b/browser/base/content/test/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);
     }
   });