Bug 1637101 [wpt PR 23516] - Fix module script referrer port, a=testonly
☠☠ backed out by 267cd03f6f5c ☠ ☠
authorDominic Farolino <domfarolino@gmail.com>
Wed, 13 May 2020 10:01:26 +0000
changeset 530140 4bdd2bf8bfdce93b74a1f7108f4b422218408140
parent 530139 798fcf5806f2dc0565ed29a8585bcbc5f268ff29
child 530141 835a90775878b25997fe761c3604fac5b5b8bd15
push id116003
push userwptsync@mozilla.com
push dateThu, 14 May 2020 19:04:08 +0000
treeherderautoland@7baa72e0d62c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1637101, 23516
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 1637101 [wpt PR 23516] - Fix module script referrer port, a=testonly Automatic update from web-platform-tests Fix module script referrer port (#23516) -- wpt-commits: 7605110823e4e290c1aefdaef6932a549d088858 wpt-pr: 23516
testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/referrer-origin-when-cross-origin.sub.html
--- a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/referrer-origin-when-cross-origin.sub.html
+++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/referrer-origin-when-cross-origin.sub.html
@@ -19,17 +19,17 @@ import { referrer as referrerSameSame } 
 
 import { referrer as referrerSameRemote } from "./resources/import-remote-origin-referrer-checker.sub.js?name=same_remote";
 
 import { referrer as referrerRemoteRemote } from "http://{{domains[www1]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/module/resources/import-referrer-checker.sub.js?name=remote_remote";
 
 import { referrer as referrerRemoteSame } from "http://{{domains[www1]}}:{{ports[http][0]}}/html/semantics/scripting-1/the-script-element/module/resources/import-same-origin-referrer-checker-from-remote-origin.sub.js?name=remote_same";
 
 const origin = (new URL(location.href)).origin + "/";
-const remoteOrigin = "http://{{domains[www1]}}:{{ports[http][0]}}/";
+const remoteOrigin = new URL("http://{{domains[www1]}}:{{ports[http][0]}}/").origin + "/";
 
 test(t => {
   assert_equals(
       referrerSame, location.href,
       "Full referrer should be sent for the same-origin top-level script.");
 }, "Importing a same-origin top-level script with the " +
    "origin-when-cross-origin policy.");