diff --git a/dom/tests/mochitest/ajax/lib/AJAX_setup.js b/dom/tests/mochitest/ajax/lib/AJAX_setup.js index d90e14227b8..d56c5ad99d5 100644 --- a/dom/tests/mochitest/ajax/lib/AJAX_setup.js +++ b/dom/tests/mochitest/ajax/lib/AJAX_setup.js @@ -8,7 +8,7 @@ function runAJAXTest() { var test = AJAXtests.shift(); var testframe = document.getElementById("testframe"); - testframe.src = test; + setTimeout(function() { testframe.src = test; }, 0); } function onManifestLoad(manifest) {