Bug 869832 followup, use the test window's gBrowser
authorDão Gottwald <dao@mozilla.com>
Fri, 10 May 2013 22:22:31 +0200
changeset 131614 f322756d551a1d27e032f37365ea4b697ccd9f92
parent 131613 3e8256901aa19f311f31584de017da3b83a7f8e5
child 131615 90103dbe8f3837c3b4b3fa3a2aa7a2763efc019e
push id24665
push userdbaron@mozilla.com
push dateSun, 12 May 2013 05:31:48 +0000
treeherdermozilla-central@d68224f5325b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs869832
milestone23.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 869832 followup, use the test window's gBrowser
browser/base/content/test/browser_typeAheadFind.js
--- a/browser/base/content/test/browser_typeAheadFind.js
+++ b/browser/base/content/test/browser_typeAheadFind.js
@@ -10,17 +10,17 @@ function test() {
   testWindow = OpenBrowserWindow();
   whenDelayedStartupFinished(testWindow, function () {
     let selectedBrowser = testWindow.gBrowser.selectedBrowser;
     selectedBrowser.addEventListener("pageshow", function() {
       selectedBrowser.removeEventListener("pageshow", arguments.callee, true);
       ok(true, "pageshow listener called");
       waitForFocus(onFocus, testWindow.content);
     }, true);
-    gBrowser.loadURI("data:text/html,<h1>A Page</h1>");
+    testWindow.gBrowser.loadURI("data:text/html,<h1>A Page</h1>");
   });
 }
 
 function onFocus() {
   ok(!testWindow.gFindBarInitialized, "find bar is not initialized");
   EventUtils.synthesizeKey("/", {}, testWindow);
   ok(testWindow.gFindBarInitialized, "find bar is now initialized");
   testWindow.close();