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 166820 8bb67e4b5d97ec96e3c59e606568d84faf3479bd
parent 166819 b7c9e1ddcf5a8528174740f662f1c68e64434759
child 166821 df1dead3ff6747fd1d402b4001f1e6e043d6b29d
push id3108
push userryanvm@gmail.com
push dateWed, 18 Dec 2013 17:06:04 +0000
treeherdermozilla-beta@069d7c01db7d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, test-only
bugs949227, 609700
milestone27.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/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);
     }
   });