Bug 1514360 - Fix test_navigator_buildID.html under GeckoView r=Ehsan
authorJames Willcox <snorp@snorp.net>
Fri, 14 Dec 2018 22:51:58 +0000
changeset 510961 edf1f05e9d00d9eb38474d9b33615136b95b57a9
parent 510960 9acd6f4f8148d02dbce912144594af0a08c090ae
child 510962 fac4a156c22d88a0139cb4065ce78457a3fc69ec
child 511040 6ed309fce6d177e90acd4ee0da0a8f493f9206cb
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEhsan
bugs1514360
milestone66.0a1
first release with
nightly linux32
edf1f05e9d00 / 66.0a1 / 20181217220100 / files
nightly linux64
edf1f05e9d00 / 66.0a1 / 20181217220100 / files
nightly mac
edf1f05e9d00 / 66.0a1 / 20181217220100 / files
nightly win32
edf1f05e9d00 / 66.0a1 / 20181217220100 / files
nightly win64
edf1f05e9d00 / 66.0a1 / 20181217220100 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1514360 - Fix test_navigator_buildID.html under GeckoView r=Ehsan Depends on D14613 Differential Revision: https://phabricator.services.mozilla.com/D14614
dom/tests/mochitest/bugs/test_navigator_buildID.html
--- a/dom/tests/mochitest/bugs/test_navigator_buildID.html
+++ b/dom/tests/mochitest/bugs/test_navigator_buildID.html
@@ -37,17 +37,17 @@ is(+contentBuildID, LEGACY_BUILD_ID,
    "navigator.buildID should be spoofed in content");
 
 //
 // Access navigator.buildID from chrome.
 //
 let chromeScript = SpecialPowers.loadChromeScript(() => {
   ChromeUtils.import("resource://gre/modules/Services.jsm");
   addMessageListener("test:getBuildID", nav => {
-    let browser = Services.wm.getMostRecentWindow('navigator:browser');
+    const browser = Services.wm.getMostRecentBrowserWindow();
     return browser.navigator.buildID;
   });
 });
 
 let chromeBuildID = chromeScript.sendSyncMessage("test:getBuildID")[0][0];
 chromeScript.destroy();
 
 ok(+chromeBuildID > LEGACY_BUILD_ID,