No Bug - Fix browser_net_timing-division.js leak when run as the last test on a CLOSED TREE. rs=past, a=test-only
authorTim Taubert <tim@timtaubert.de>
Fri, 11 Apr 2014 09:12:47 +0200
changeset 183702 f91bdb05883bc2db23e76ea61c79b91759de895c
parent 183701 0e107cfcd3fdd70b936bc217bb2af63d1938c281
child 183703 e7806ccfe24f41f8727a8c9b5c3b698d9913eadb
push id3452
push userryanvm@gmail.com
push dateFri, 11 Apr 2014 12:53:53 +0000
treeherdermozilla-beta@f91bdb05883b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast, test-only
milestone29.0
No Bug - Fix browser_net_timing-division.js leak when run as the last test on a CLOSED TREE. rs=past, a=test-only
browser/devtools/netmonitor/test/head.js
--- a/browser/devtools/netmonitor/test/head.js
+++ b/browser/devtools/netmonitor/test/head.js
@@ -114,17 +114,17 @@ function restartNetMonitor(aMonitor, aNe
 }
 
 function teardown(aMonitor) {
   info("Destroying the specified network monitor.");
 
   let deferred = promise.defer();
   let tab = aMonitor.target.tab;
 
-  aMonitor.once("destroyed", deferred.resolve);
+  aMonitor.once("destroyed", () => executeSoon(deferred.resolve));
   removeTab(tab);
 
   return deferred.promise;
 }
 
 function waitForNetworkEvents(aMonitor, aGetRequests, aPostRequests = 0) {
   let deferred = promise.defer();