Bug 834255 - Fix intermittent orange. r=bz
authorBobby Holley <bobbyholley@gmail.com>
Fri, 25 Jan 2013 11:17:40 +0100
changeset 119859 eb42fd7cdd465abbef35f0895af4ca79e5027f62
parent 119858 95bb08ab18d87226e538f02cb4c9dc0f013e56c5
child 119860 53640f283f68741d84ed030ae218dce8e05570e2
push id1317
push userryanvm@gmail.com
push dateSun, 27 Jan 2013 02:21:57 +0000
treeherderfx-team@47684913d63d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs834255
milestone21.0a1
Bug 834255 - Fix intermittent orange. r=bz
browser/base/content/test/browser_bug832435.js
--- a/browser/base/content/test/browser_bug832435.js
+++ b/browser/base/content/test/browser_bug832435.js
@@ -6,14 +6,18 @@ function test() {
   waitForExplicitFinish();
   ok(true, "Starting up");
 
   gBrowser.selectedBrowser.focus();
   gURLBar.addEventListener("focus", function onFocus() {
     gURLBar.removeEventListener("focus", onFocus);
     ok(true, "Invoked onfocus handler");
     EventUtils.synthesizeKey("VK_RETURN", { shiftKey: true });
-    ok(true, "Evaluated without crashing");
-    finish();
+
+    // javscript: URIs are evaluated async.
+    SimpleTest.executeSoon(function() {
+      ok(true, "Evaluated without crashing");
+      finish();
+    });
   });
-  gURLBar.inputField.value = "javascript: document.body.innerHTML = '11111111'); ";
+  gURLBar.inputField.value = "javascript: var foo = '11111111'; ";
   gURLBar.focus();
 }