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 174396 efa13bb58c41761475a78382ddc44d2a858ba1d1
parent 174395 c8b04300b4d8d308fa63fe10c7e4127b22b18ae5
child 174397 a7cad529b00838038093d96d4d31f35e88077b15
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, test-only
bugs949227, 609700
milestone28.0a2
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);
     }
   });