Bug 535903 - [SeaMonkey 2.1] mochitest-browser-chrome: "browser_focus_steal_from_chrome.js | Timed out"
authorIan Neal <iann_cvs@blueyonder.co.uk>
Tue, 07 Sep 2010 13:25:18 +0100
changeset 52095 fe3a1059a92b1177243854580a69173f5d863498
parent 52094 ca371593d4330ce7b277ad5de11d56b2f9cc5b1c
child 52096 34d82d177553f73d2b9ecdbe5ee63e5d755e7088
push id15539
push useriann_cvs@blueyonder.co.uk
push dateTue, 07 Sep 2010 12:25:58 +0000
treeherdermozilla-central@fe3a1059a92b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs535903
milestone2.0b6pre
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 535903 - [SeaMonkey 2.1] mochitest-browser-chrome: "browser_focus_steal_from_chrome.js | Timed out" r=bzbarsky a=testing
dom/tests/browser/browser_focus_steal_from_chrome.js
--- a/dom/tests/browser/browser_focus_steal_from_chrome.js
+++ b/dom/tests/browser/browser_focus_steal_from_chrome.js
@@ -85,17 +85,17 @@ function test() {
     tabs[1].linkedBrowser.loadURI(testingList[testingIndex].uri);
   }
 
   function onLoadForegroundTab() {
     tabs[0].linkedBrowser.removeEventListener("load", onLoadForegroundTab, true);
     if (setFocusToChrome) {
       // Set focus to a chrome element before the loaded content tries to move
       // focus.
-      BrowserSearch.searchBar.focus();
+      document.getElementById("urlbar").focus();
     }
     onLoadComplete();
   }
 
   function onLoadBackgroundTab() {
     tabs[1].linkedBrowser.removeEventListener("load", onLoadBackgroundTab, true);
     onLoadComplete();
   }