Bug 1335801 - Actually wait for the right href to load. r=Felipe
authorBlake Kaplan <mrbkap@gmail.com>
Fri, 17 Feb 2017 17:13:52 -0800
changeset 373461 9d35d61ac2ac342b4236e2ec2fb66efc93c31542
parent 373460 882622ce817e588080b8be1db0bf0bdc572a2826
child 373462 1fa7b9c7d739737d7015e46c47810c499ebc0e0e
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe
bugs1335801
milestone54.0a1
Bug 1335801 - Actually wait for the right href to load. r=Felipe MozReview-Commit-ID: GVkWzNoTSQ7
browser/base/content/test/referrer/head.js
--- a/browser/base/content/test/referrer/head.js
+++ b/browser/base/content/test/referrer/head.js
@@ -137,17 +137,17 @@ function delayedStartupFinished(aWindow)
  * Waits for some (any) tab to load. The caller triggers the load.
  * @param aWindow The window where to wait for a tab to load.
  * @return {Promise}
  * @resolves With the tab once it's loaded.
  */
 function someTabLoaded(aWindow) {
   return new Promise(function(resolve) {
     aWindow.gBrowser.addEventListener("load", function onLoad(aEvent) {
-      if (aWindow.location === "about:blank") {
+      if (aWindow.location.href === "about:blank") {
         return;
       }
       let tab = aWindow.gBrowser._getTabForContentWindow(
           aEvent.target.defaultView.top);
       if (tab) {
         aWindow.gBrowser.removeEventListener("load", onLoad, true);
         resolve(tab);
       }