Bug 1002724 - use resolvable URL in extension html_detail_view test. r=mstriemer
authorSid Stamm <mozilla@sidstamm.com>
Thu, 21 May 2020 17:43:15 +0000
changeset 531483 22855ae7fa00090156980b190ba9a9e3f039747a
parent 531482 cb1683a32099fd87cfa713fe4129d8ba523d0255
child 531484 66087bb120a4c7a9119d48378414d8c41007a744
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)
reviewersmstriemer
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 extension html_detail_view test. r=mstriemer Differential Revision: https://phabricator.services.mozilla.com/D75088
toolkit/mozapps/extensions/test/browser/browser_html_detail_view.js
--- a/toolkit/mozapps/extensions/test/browser/browser_html_detail_view.js
+++ b/toolkit/mozapps/extensions/test/browser/browser_html_detail_view.js
@@ -139,17 +139,17 @@ add_task(async function enableHtmlViews(
     {
       id: "addon1@mochi.test",
       name: "Test add-on 1",
       creator: { name: "The creator", url: "http://example.com/me" },
       version: "3.1",
       description: "Short description",
       fullDescription: "Longer description\nWith brs!",
       type: "extension",
-      contributionURL: "http://localhost/contribute",
+      contributionURL: "http://example.com/contribute",
       averageRating: 4.279,
       userPermissions: {
         origins: ["<all_urls>", "file://*/*"],
         permissions: ["alarms", "contextMenus", "tabs", "webNavigation"],
       },
       reviewCount: 5,
       reviewURL: "http://example.com/reviews",
       homepageURL: "http://example.com/addon1",
@@ -476,17 +476,17 @@ add_task(async function testFullDetails(
     "The full description replaces newlines with <br>"
   );
 
   let contrib = details.querySelector(".addon-detail-contribute");
   ok(contrib, "The contribution section is visible");
 
   let waitForTab = BrowserTestUtils.waitForNewTab(
     gBrowser,
-    "http://localhost/contribute"
+    "http://example.com/contribute"
   );
   contrib.querySelector("button").click();
   BrowserTestUtils.removeTab(await waitForTab);
 
   let rows = getDetailRows(card);
 
   // Auto updates.
   let row = rows.shift();