Bug 1451913 P9 Try to avoid event listener leak test intermittents by doing more GC. r=baku
authorBen Kelly <ben@wanderview.com>
Mon, 16 Apr 2018 06:08:53 -0700
changeset 467384 76afcfbd047bb5131bde2f4f693ee0013bd2ed64
parent 467383 8dd0da361b21f74f32cce7a731dfafc3a2fdcf3c
child 467385 ca5da952ff4c690bd34336b8a8aafec06b01e0e8
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1451913
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1451913 P9 Try to avoid event listener leak test intermittents by doing more GC. r=baku
dom/events/test/event_leak_utils.js
--- a/dom/events/test/event_leak_utils.js
+++ b/dom/events/test/event_leak_utils.js
@@ -67,15 +67,16 @@ async function _eventListenerLeakStep(ta
 
   if (extra) {
     await extra(frame);
   }
 
   frame.remove();
   frame = null;
 
-  // Perform two GC'd to avoid intermittent delayed collection.
+  // Perform many GC's to avoid intermittent delayed collection.
+  await new Promise(resolve => SpecialPowers.exactGC(resolve));
   await new Promise(resolve => SpecialPowers.exactGC(resolve));
   await new Promise(resolve => SpecialPowers.exactGC(resolve));
 
   ok(!weakRef.get(), `iframe content window should be garbage collected - ${name}`);
 }