Bug 895288 - Stop loading earlier in browser_aboutHome.js to avoid console spam of Google css warnings
authorMarco Bonardo <mbonardo@mozilla.com>
Fri, 19 Jul 2013 15:51:37 +0200
changeset 139209 7fb8ea5cd2fc17f15a12178987d5af2f0fcfd227
parent 139208 6d5466692056a199ff00e1436b4608ae37586c3e
child 139210 c2b8067fd55c31f57cf8ef9cf00ee3f6f1e9b197
push id31280
push usermak77@bonardo.net
push dateFri, 19 Jul 2013 13:52:11 +0000
treeherdermozilla-inbound@c2b8067fd55c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs895288
milestone25.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 895288 - Stop loading earlier in browser_aboutHome.js to avoid console spam of Google css warnings r=ttaubert
browser/base/content/test/browser_aboutHome.js
--- a/browser/base/content/test/browser_aboutHome.js
+++ b/browser/base/content/test/browser_aboutHome.js
@@ -106,31 +106,30 @@ let gTests = [
     let doc = gBrowser.contentDocument;
     let engineName = doc.documentElement.getAttribute("searchEngineName");
 
     // We rely on the listener in browser.js being installed and fired before
     // this one. If this ever changes, we should add an executeSoon() or similar.
     doc.addEventListener("AboutHomeSearchEvent", function onSearch(e) {
       is(e.detail, engineName, "Detail is search engine name");
 
-      gBrowser.stop();
-
       getNumberOfSearches(engineName).then(num => {
         is(num, numSearchesBefore + 1, "One more search recorded.");
         deferred.resolve();
       });
     }, true, true);
 
     // Get the current number of recorded searches.
     getNumberOfSearches(engineName).then(num => {
       numSearchesBefore = num;
 
       info("Perform a search.");
       doc.getElementById("searchText").value = "a search";
       doc.getElementById("searchSubmit").click();
+      gBrowser.stop();
     });
 
     return deferred.promise;
   }
 },
 
 {
   desc: "Check snippets map is cleared if cached version is old",