Bug 1002724 - use resolvable URL in fxaccounts browser chrome tests. r=rfkelly
authorSid Stamm <mozilla@sidstamm.com>
Thu, 21 May 2020 17:33:32 +0000
changeset 531481 d643f8c4a1a1a9bf1b213c1c3cbc6ff20d981c34
parent 531480 71cdc10cc95966181da62fd9a513630eae93ed14
child 531482 cb1683a32099fd87cfa713fe4129d8ba523d0255
push id37440
push userabutkovits@mozilla.com
push dateFri, 22 May 2020 09:43:16 +0000
treeherdermozilla-central@fbf71e4d2e21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrfkelly
bugs1002724
milestone78.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 1002724 - use resolvable URL in fxaccounts browser chrome tests. r=rfkelly Differential Revision: https://phabricator.services.mozilla.com/D75086
services/fxaccounts/tests/browser/browser_device_connected.js
services/fxaccounts/tests/browser/browser_verify_login.js
--- a/services/fxaccounts/tests/browser/browser_device_connected.js
+++ b/services/fxaccounts/tests/browser/browser_device_connected.js
@@ -6,17 +6,17 @@ const { FxAccounts } = ChromeUtils.impor
 );
 
 const gBrowserGlue = Cc["@mozilla.org/browser/browserglue;1"].getService(
   Ci.nsIObserver
 );
 const accountsBundle = Services.strings.createBundle(
   "chrome://browser/locale/accounts.properties"
 );
-const DEVICES_URL = "http://localhost/devices";
+const DEVICES_URL = "https://example.com/devices";
 
 let expectedBody;
 
 add_task(async function setup() {
   const origManageDevicesURI = FxAccounts.config.promiseManageDevicesURI;
   FxAccounts.config.promiseManageDevicesURI = () =>
     Promise.resolve(DEVICES_URL);
   setupMockAlertsService();
--- a/services/fxaccounts/tests/browser/browser_verify_login.js
+++ b/services/fxaccounts/tests/browser/browser_verify_login.js
@@ -1,16 +1,16 @@
 /* Any copyright is dedicated to the Public Domain.
    http://creativecommons.org/publicdomain/zero/1.0/ */
 
 add_task(async function() {
   let payload = {
     data: {
       deviceName: "Laptop",
-      url: "http://localhost/newLogin",
+      url: "https://example.com/newLogin",
       title: "Sign-in Request",
       body:
         "New sign-in request from vershwal's Nighty on Intel Mac OS X 10.12",
     },
   };
   info("testVerifyNewSignin");
   setupMockAlertsService();
   BrowserTestUtils.loadURI(gBrowser.selectedBrowser, "about:robots");