Bug 719186 - start session history test asynchronously after load event dispatching. r=bz
☠☠ backed out by 35870757328d ☠ ☠
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 10 Jul 2014 20:19:23 +0300
changeset 193541 01291e659c2bba7eb7e8bf2f6b5bc299f06d5aca
parent 193540 a9ad61be640668d2a610c861a5184e6cf658e15c
child 193542 4769de1b792bbe329cec903aefdab63842730df4
push id27123
push userryanvm@gmail.com
push dateFri, 11 Jul 2014 20:35:05 +0000
treeherdermozilla-central@84bd8d9f4256 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs719186
milestone33.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 719186 - start session history test asynchronously after load event dispatching. r=bz
docshell/test/mochitest.ini
docshell/test/test_bug413310.html
--- a/docshell/test/mochitest.ini
+++ b/docshell/test/mochitest.ini
@@ -43,18 +43,17 @@ skip-if = (buildapp == 'b2g' && toolkit 
 skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage
 [test_bug384014.html]
 [test_bug385434.html]
 [test_bug387979.html]
 [test_bug402210.html]
 [test_bug404548.html]
 skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage
 [test_bug413310.html]
-skip-if = true || toolkit == 'android' || buildapp == 'b2g'
-# Disabled for too many intermittent failures (bug 719186)
+skip-if = toolkit == 'android' || buildapp == 'b2g'
 [test_bug475636.html]
 [test_bug509055.html]
 skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage
 [test_bug511449.html]
 skip-if = toolkit != "cocoa" || e10s
 support-files = file_bug511449.html
 [test_bug529119-1.html]
 skip-if = (buildapp == 'b2g' && toolkit != 'gonk') #Bug 931116, b2g desktop specific, initial triage
--- a/docshell/test/test_bug413310.html
+++ b/docshell/test/test_bug413310.html
@@ -28,17 +28,17 @@ var onloadCount = 0;
 var step = -1;  // One increment will come from the initial subframe onload.
                 // Note that this script should come before the subframe,
                 // so that doNextStep is defined when its onload handler fires.
 
 var textContent;
 
 SimpleTest.waitForExplicitFinish();
 
-addLoadEvent(doNextStep);
+addLoadEvent(function() { setTimeout(doNextStep, 0); });
 
 function doNextStep() {
   ++step;
   switch (step) {
     case 1:
       is(onloadCount, 1, "Loaded initial page");
       is($("i").contentWindow.location.href,
          location.href.replace(/test_bug413310.html/,