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 192718 cfee1adfcd258bb138f3d1ed5d1e88d5a61023e1
parent 192717 4f032968994e4cbcedf3d565fff621870d238a8a
child 192719 e6e2ddd5b100f10548526a19fb75c5e4c6c0004c
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast, test-only
milestone30.0a2
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
@@ -128,17 +128,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();