Bug 634834 (long delayed) followup, it puts the iframe after the function for its onload, or it gets the "is not defined" error again
authorPhil Ringnalda <philringnalda@gmail.com>
Mon, 04 Jul 2011 20:53:49 -0700
changeset 73017 c2b30c18d762fb1f318cfecd4e4ca5b2fc3d1b0d
parent 73016 0a8481aadf8f2e14f729784abd94fe5fdfff5352
child 73018 58c721a6bb1a0f6b32532e5bf32351d8b0d3e77c
push id45
push userffxbld
push dateThu, 22 Sep 2011 17:29:26 +0000
treeherdermozilla-release@b3273da80b44 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs634834
milestone7.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 634834 (long delayed) followup, it puts the iframe after the function for its onload, or it gets the "is not defined" error again
docshell/test/test_bug634834.html
--- a/docshell/test/test_bug634834.html
+++ b/docshell/test/test_bug634834.html
@@ -8,18 +8,16 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/javascript" src="/MochiKit/packed.js"></script>
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=634834">Mozilla Bug 634834</a>
 
-<iframe id='iframe' src='file_bug634834.html' onload='iframe_loaded()'></iframe>
-
 <script type='application/javascript;version=1.7'>
 SimpleTest.waitForExplicitFinish();
 
 function iframe_loaded() {
   var loadedAfterPushstate = false;
   $('iframe').onload = function() {
     loadedAfterPushstate = true;
   }
@@ -44,10 +42,13 @@ function iframe_loaded() {
   }
   catch(e) {
     ok(true, 'pushState threw an exception.');
   }
   SimpleTest.finish();
 }
 
 </script>
+
+<iframe id='iframe' src='file_bug634834.html' onload='iframe_loaded()'></iframe>
+
 </body>
 </html>