Backed out changeset bfee38f564ed (bug 1312960)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Sat, 29 Oct 2016 13:45:14 +0200
changeset 320136 be5f087a2c4e3fcfd64a56921429f2a5b76dc02f
parent 320135 c5a67edeb6239cc576be71fc8ec4955e544a4ca4
child 320137 7e9f99645168e37e0f7298faebeba3e263491bbc
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1312960
milestone52.0a1
backs outbfee38f564edbae9c4d0a70ce5e9276d4d50d944
Backed out changeset bfee38f564ed (bug 1312960)
dom/ipc/tests/test_child_docshell.html
--- a/dom/ipc/tests/test_child_docshell.html
+++ b/dom/ipc/tests/test_child_docshell.html
@@ -69,25 +69,17 @@ SpecialPowers.pushPrefEnv({'set':[
                                 .QueryInterface(Ci.nsIDocShell);
       sendAsyncMessage("DOMWindowCreatedReceived", {
         stableChromeEventHandler: chromeEventHandler === docShell.chromeEventHandler,
         iframeHasNewDocShell: new_docShell !== docShell,
         iframeHasSameChromeEventHandler: new_docShell.chromeEventHandler === chromeEventHandler
       });
     });
 
-    function go() {
-      let i = content.document.createElement("iframe");
-      i.setAttribute("src", "data:text/html,foo");
-      content.document.documentElement.appendChild(i);
-    }
-
-    if (content.document.readyState == "complete") {
-      go();
-    } else {
-      addEventListener("load", go, true);
-    }
+    let i = content.document.createElement("iframe");
+    i.setAttribute("src", "data:text/html,foo");
+    content.document.documentElement.appendChild(i);
   }, false);
 });
 
 </script>
 </body>
 </html>