WebKit Bugzilla
Attachment 368680 Details for
Bug 197321
: Import WPT referrer-policy tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch (text/plain), 8.37 MB, created by
youenn fablet
on 2019-05-01 09:49:39 PDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
youenn fablet
Created:
2019-05-01 09:49:39 PDT
Size:
8.37 MB
patch
obsolete
>diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog >index e61791d124f..1448aea12d2 100644 >--- a/LayoutTests/ChangeLog >+++ b/LayoutTests/ChangeLog >@@ -1,3 +1,14 @@ >+2019-05-01 Youenn Fablet <youenn@apple.com> >+ >+ Import WPT referrer-policy tests >+ https://bugs.webkit.org/show_bug.cgi?id=197321 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ fix-197321 >+ >+ * TestExpectations: >+ > 2019-05-01 Youenn Fablet <youenn@apple.com> > > Cache.add and Cache.addAll should compute a correct response body size >diff --git a/LayoutTests/TestExpectations b/LayoutTests/TestExpectations >index 2c26f884616..e502f29b49d 100644 >--- a/LayoutTests/TestExpectations >+++ b/LayoutTests/TestExpectations >@@ -194,6 +194,8 @@ imported/w3c/web-platform-tests/secure-contexts/shared-worker-secure-first.https > # Per specification, if the scripts are identical, we do not install the new script and return the existing registration. > imported/w3c/web-platform-tests/service-workers/service-worker/import-scripts-redirect.https.html [ Skip ] > >+imported/w3c/web-platform-tests/referrer-policy [ Skip ] >+ > # Newly imported service worker tests that are timing out. > imported/w3c/web-platform-tests/service-workers/service-worker/dedicated-worker-service-worker-interception.https.html [ Skip ] > imported/w3c/web-platform-tests/service-workers/service-worker/embed-and-object-are-not-intercepted.https.html [ Skip ] >diff --git a/LayoutTests/imported/w3c/ChangeLog b/LayoutTests/imported/w3c/ChangeLog >index a75fa2999a2..858e65c0a58 100644 >--- a/LayoutTests/imported/w3c/ChangeLog >+++ b/LayoutTests/imported/w3c/ChangeLog >@@ -1,3 +1,16 @@ >+2019-05-01 Youenn Fablet <youenn@apple.com> >+ >+ Import WPT referrer-policy tests >+ https://bugs.webkit.org/show_bug.cgi?id=197321 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * resources/import-expectations.json: >+ * web-platform-tests/common/: Refreshed. >+ * web-platform-tests/custom-elements/custom-element-registry/per-global-expected.txt: >+ * web-platform-tests/html/browsers/the-window-object/named-access-on-the-window-object/navigated-named-objects.window-expected.txt: >+ * web-platform-tests/referrer-policy/: Added. >+ > 2019-04-30 Youenn Fablet <youenn@apple.com> > > Update WPT service-worker resource-timing test to use hosts[alt] >diff --git a/LayoutTests/imported/w3c/resources/import-expectations.json b/LayoutTests/imported/w3c/resources/import-expectations.json >index 2b3c2bc5015..270cbe18a43 100644 >--- a/LayoutTests/imported/w3c/resources/import-expectations.json >+++ b/LayoutTests/imported/w3c/resources/import-expectations.json >@@ -295,7 +295,7 @@ > "web-platform-tests/proximity": "skip", > "web-platform-tests/quirks-mode": "skip", > "web-platform-tests/quirks/unitless-length": "import", >- "web-platform-tests/referrer-policy": "skip", >+ "web-platform-tests/referrer-policy": "import", > "web-platform-tests/remote-playback": "skip", > "web-platform-tests/requestidlecallback": "skip", > "web-platform-tests/resize-observer": "skip", >@@ -361,4 +361,4 @@ > "web-platform-tests/worklets": "skip", > "web-platform-tests/x-frame-options": "skip", > "web-platform-tests/xhr": "import" >-} >+} >\ No newline at end of file >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/META.yml b/LayoutTests/imported/w3c/web-platform-tests/common/META.yml >new file mode 100644 >index 00000000000..958883a1b07 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/META.yml >@@ -0,0 +1,4 @@ >+suggested_reviewers: >+ - zqzhang >+ - deniak >+ - gsnedders >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/OWNERS b/LayoutTests/imported/w3c/web-platform-tests/common/OWNERS >deleted file mode 100644 >index 3a97291b154..00000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/OWNERS >+++ /dev/null >@@ -1,4 +0,0 @@ >-@zqzhang >-@dontcallmedom >-@deniak >-@gsnedders >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/canvas-tests.js b/LayoutTests/imported/w3c/web-platform-tests/common/canvas-tests.js >index bf13d4a349c..2d0397b42d2 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/canvas-tests.js >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/canvas-tests.js >@@ -50,10 +50,14 @@ function _assertPixelApprox(canvas, x,y, r,g,b,a, pos, colour, tolerance) > assert_approx_equals(c[3], a, tolerance, 'Alpha channel of the pixel at (' + x + ', ' + y + ')'); > } > >+let _deferred = false; >+ >+function deferTest() { >+ _deferred = true; >+} >+ > function _addTest(testFn) > { >- var deferred = false; >- window.deferTest = function () { deferred = true; }; > on_event(window, "load", function() > { > t.step(function() { >@@ -62,7 +66,7 @@ function _addTest(testFn) > t.step(testFn, window, canvas, ctx); > }); > >- if (!deferred) { >+ if (!_deferred) { > t.done(); > } > }); >@@ -103,3 +107,94 @@ function addCrossOriginRedirectYellowImage() > get_host_info().HTTP_REMOTE_ORIGIN + "/images/yellow.png"; > document.body.appendChild(img); > } >+ >+function forEachCanvasSource(crossOriginUrl, sameOriginUrl, callback) { >+ function makeImage() { >+ return new Promise((resolve, reject) => { >+ const image = new Image(); >+ image.onload = () => resolve(image); >+ image.onerror = reject; >+ image.src = crossOriginUrl + "/images/red.png"; >+ }); >+ } >+ >+ const arguments = [ >+ { >+ name: "cross-origin HTMLImageElement", >+ factory: makeImage, >+ }, >+ >+ { >+ name: "cross-origin SVGImageElement", >+ factory: () => { >+ return new Promise((resolve, reject) => { >+ const image = document.createElementNS(NAMESPACES.svg, "image"); >+ image.onload = () => resolve(image); >+ image.onerror = reject; >+ image.setAttribute("externalResourcesRequired", "true"); >+ image.setAttributeNS(NAMESPACES.xlink, 'xlink:href', crossOriginUrl + "/images/red.png"); >+ document.body.appendChild(image); >+ }); >+ }, >+ }, >+ >+ { >+ name: "cross-origin HTMLVideoElement", >+ factory: () => { >+ return new Promise((resolve, reject) => { >+ const video = document.createElement("video"); >+ video.oncanplaythrough = () => resolve(video); >+ video.onerror = reject; >+ video.src = getVideoURI(crossOriginUrl + "/media/movie_300"); >+ }); >+ }, >+ }, >+ >+ { >+ name: "redirected to cross-origin HTMLVideoElement", >+ factory: () => { >+ return new Promise((resolve, reject) => { >+ const video = document.createElement("video"); >+ video.oncanplaythrough = () => resolve(video); >+ video.onerror = reject; >+ video.src = "/common/redirect.py?location=" + getVideoURI(crossOriginUrl + "/media/movie_300"); >+ }); >+ }, >+ }, >+ >+ { >+ name: "redirected to same-origin HTMLVideoElement", >+ factory: () => { >+ return new Promise((resolve, reject) => { >+ const video = document.createElement("video"); >+ video.oncanplaythrough = () => resolve(video); >+ video.onerror = reject; >+ video.src = crossOriginUrl + "/common/redirect.py?location=" + getVideoURI(sameOriginUrl + "/media/movie_300"); >+ }); >+ }, >+ }, >+ >+ { >+ name: "unclean HTMLCanvasElement", >+ factory: () => { >+ return makeImage().then(image => { >+ const canvas = document.createElement("canvas"); >+ const context = canvas.getContext("2d"); >+ context.drawImage(image, 0, 0); >+ return canvas; >+ }); >+ }, >+ }, >+ >+ { >+ name: "unclean ImageBitmap", >+ factory: () => { >+ return makeImage().then(createImageBitmap); >+ }, >+ }, >+ ]; >+ >+ for (let { name, factory } of arguments) { >+ callback(name, factory); >+ } >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/dummy.xhtml b/LayoutTests/imported/w3c/web-platform-tests/common/dummy.xhtml >index 5b208d74450..dba6945f4ba 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/dummy.xhtml >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/dummy.xhtml >@@ -1,2 +1,2 @@ > <!DOCTYPE html> >-<html><head><title>Dummy XHTML document</title></head><body /></html> >+<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dummy XHTML document</title></head><body /></html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/echo.py b/LayoutTests/imported/w3c/web-platform-tests/common/echo.py >new file mode 100644 >index 00000000000..2ee403645b1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/echo.py >@@ -0,0 +1,6 @@ >+def main(request, response): >+ # Without X-XSS-Protection to disable non-standard XSS protection the functionality this >+ # resource offers is useless >+ response.headers.set("X-XSS-Protection", "0") >+ response.headers.set("Content-Type", "text/html") >+ response.content = request.GET.first("content") >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/get-host-info.sub.js b/LayoutTests/imported/w3c/web-platform-tests/common/get-host-info.sub.js >index 35acad33a8f..3a61167b7d5 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/get-host-info.sub.js >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/get-host-info.sub.js >@@ -3,6 +3,12 @@ function get_host_info() { > var HTTP_PORT = '{{ports[http][0]}}'; > var HTTP_PORT2 = '{{ports[http][1]}}'; > var HTTPS_PORT = '{{ports[https][0]}}'; >+ var PROTOCOL = self.location.protocol; >+ var IS_HTTPS = (PROTOCOL == "https:"); >+ var HTTP_PORT_ELIDED = HTTP_PORT == "80" ? "" : (":" + HTTP_PORT); >+ var HTTP_PORT2_ELIDED = HTTP_PORT2 == "80" ? "" : (":" + HTTP_PORT2); >+ var HTTPS_PORT_ELIDED = HTTPS_PORT == "443" ? "" : (":" + HTTPS_PORT); >+ var PORT_ELIDED = IS_HTTPS ? HTTPS_PORT_ELIDED : HTTP_PORT_ELIDED; > var ORIGINAL_HOST = '{{host}}'; > var REMOTE_HOST = (ORIGINAL_HOST === 'localhost') ? '127.0.0.1' : ('www1.' + ORIGINAL_HOST); > var OTHER_HOST = '{{domains[www2]}}'; >@@ -15,17 +21,20 @@ function get_host_info() { > ORIGINAL_HOST: ORIGINAL_HOST, > REMOTE_HOST: REMOTE_HOST, > >- HTTP_ORIGIN: 'http://' + ORIGINAL_HOST + ':' + HTTP_PORT, >- HTTPS_ORIGIN: 'https://' + ORIGINAL_HOST + ':' + HTTPS_PORT, >- HTTPS_ORIGIN_WITH_CREDS: 'https://foo:bar@' + ORIGINAL_HOST + ':' + HTTPS_PORT, >- HTTP_ORIGIN_WITH_DIFFERENT_PORT: 'http://' + ORIGINAL_HOST + ':' + HTTP_PORT2, >- HTTP_REMOTE_ORIGIN: 'http://' + REMOTE_HOST + ':' + HTTP_PORT, >- HTTP_NOTSAMESITE_ORIGIN: 'http://' + NOTSAMESITE_HOST + ':' + HTTP_PORT, >- HTTP_REMOTE_ORIGIN_WITH_DIFFERENT_PORT: 'http://' + REMOTE_HOST + ':' + HTTP_PORT2, >- HTTPS_REMOTE_ORIGIN: 'https://' + REMOTE_HOST + ':' + HTTPS_PORT, >- HTTPS_REMOTE_ORIGIN_WITH_CREDS: 'https://foo:bar@' + REMOTE_HOST + ':' + HTTPS_PORT, >- UNAUTHENTICATED_ORIGIN: 'http://' + OTHER_HOST + ':' + HTTP_PORT, >- AUTHENTICATED_ORIGIN: 'https://' + OTHER_HOST + ':' + HTTPS_PORT >+ ORIGIN: PROTOCOL + "//" + ORIGINAL_HOST + PORT_ELIDED, >+ HTTP_ORIGIN: 'http://' + ORIGINAL_HOST + HTTP_PORT_ELIDED, >+ HTTPS_ORIGIN: 'https://' + ORIGINAL_HOST + HTTPS_PORT_ELIDED, >+ HTTPS_ORIGIN_WITH_CREDS: 'https://foo:bar@' + ORIGINAL_HOST + HTTPS_PORT_ELIDED, >+ HTTP_ORIGIN_WITH_DIFFERENT_PORT: 'http://' + ORIGINAL_HOST + HTTP_PORT2_ELIDED, >+ REMOTE_ORIGIN: PROTOCOL + "//" + REMOTE_HOST + PORT_ELIDED, >+ HTTP_REMOTE_ORIGIN: 'http://' + REMOTE_HOST + HTTP_PORT_ELIDED, >+ HTTP_NOTSAMESITE_ORIGIN: 'http://' + NOTSAMESITE_HOST + HTTP_PORT_ELIDED, >+ HTTP_REMOTE_ORIGIN_WITH_DIFFERENT_PORT: 'http://' + REMOTE_HOST + HTTP_PORT2_ELIDED, >+ HTTPS_REMOTE_ORIGIN: 'https://' + REMOTE_HOST + HTTPS_PORT_ELIDED, >+ HTTPS_REMOTE_ORIGIN_WITH_CREDS: 'https://foo:bar@' + REMOTE_HOST + HTTPS_PORT_ELIDED, >+ HTTPS_NOTSAMESITE_ORIGIN: 'https://' + NOTSAMESITE_HOST + HTTPS_PORT_ELIDED, >+ UNAUTHENTICATED_ORIGIN: 'http://' + OTHER_HOST + HTTP_PORT_ELIDED, >+ AUTHENTICATED_ORIGIN: 'https://' + OTHER_HOST + HTTPS_PORT_ELIDED > }; > } > >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/large.py b/LayoutTests/imported/w3c/web-platform-tests/common/large.py >deleted file mode 100644 >index 0db4e4bbd1c..00000000000 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/large.py >+++ /dev/null >@@ -1,45 +0,0 @@ >-def main(request, response): >- """Code for generating large responses where the actual response data >- isn't very important. >- >- Two request parameters: >- size (required): An integer number of bytes (no suffix) or kilobytes >- ("kb" suffix) or megabytes ("Mb" suffix). >- string (optional): The string to repeat in the response. Defaults to "a". >- >- Example: >- /resources/large.py?size=32Mb&string=ab >- """ >- if not "size" in request.GET: >- 400, "Need an integer bytes parameter" >- >- bytes_value = request.GET.first("size") >- >- chunk_size = 1024 >- >- multipliers = {"kb": 1024, >- "Mb": 1024*1024} >- >- suffix = bytes_value[-2:] >- if suffix in multipliers: >- multiplier = multipliers[suffix] >- bytes_value = bytes_value[:-2] * multiplier >- >- try: >- num_bytes = int(bytes_value) >- except ValueError: >- return 400, "Bytes must be an integer possibly with a kb or Mb suffix" >- >- string = str(request.GET.first("string", "a")) >- >- chunk = string * chunk_size >- >- def content(): >- bytes_sent = 0 >- while bytes_sent < num_bytes: >- if num_bytes - bytes_sent < len(chunk): >- yield chunk[num_bytes - bytes_sent] >- else: >- yield chunk >- bytes_sent += len(chunk) >- return [("Content-Type", "text/plain")], content() >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/object-association.js b/LayoutTests/imported/w3c/web-platform-tests/common/object-association.js >index cd1453e4739..d58f94b62d6 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/object-association.js >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/object-association.js >@@ -14,7 +14,7 @@ window.testIsPerWindow = propertyName => { > iframe.remove(); > > const after = frame[propertyName]; >- assert_equals(after, before); >+ assert_equals(after, before, `window.${propertyName} should not change after iframe.remove()`); > }, `Discarding the browsing context must not change window.${propertyName}`); > > async_test(t => { >@@ -41,9 +41,7 @@ window.testIsPerWindow = propertyName => { > iframe.src = "/common/blank.html"; > }, `Navigating from the initial about:blank must not replace window.${propertyName}`); > >- // Note: document.open()'s spec doesn't match most browsers; see https://github.com/whatwg/html/issues/1698. >- // However, as explained in https://github.com/whatwg/html/issues/1698#issuecomment-298748641, even an updated spec >- // will probably still reset Window-associated properties. >+ // Per spec, document.open() should not change any of the Window state. > async_test(t => { > const iframe = document.createElement("iframe"); > >@@ -55,7 +53,9 @@ window.testIsPerWindow = propertyName => { > frame.document.open(); > > const after = frame[propertyName]; >- assert_not_equals(after, before); >+ assert_equals(after, before); >+ >+ frame.document.close(); > }); > > iframe.src = "/common/blank.html"; >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/performance-timeline-utils.js b/LayoutTests/imported/w3c/web-platform-tests/common/performance-timeline-utils.js >index 6845d6cbc68..b20241cc610 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/performance-timeline-utils.js >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/performance-timeline-utils.js >@@ -1,3 +1,7 @@ >+/* >+author: W3C http://www.w3.org/ >+help: http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute >+*/ > var performanceNamespace = window.performance; > var namespace_check = false; > function wp_test(func, msg, properties) >@@ -10,7 +14,8 @@ function wp_test(func, msg, properties) > if (performanceNamespace === undefined || performanceNamespace == null) > { > // show a single error that window.performance is undefined >- test(function() { assert_true(performanceNamespace !== undefined && performanceNamespace != null, "window.performance is defined and not null"); }, "window.performance is defined and not null.", {author:"W3C http://www.w3.org/",help:"http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute",assert:"The window.performance attribute provides a hosting area for performance related attributes. "}); >+ // The window.performance attribute provides a hosting area for performance related attributes. >+ test(function() { assert_true(performanceNamespace !== undefined && performanceNamespace != null, "window.performance is defined and not null"); }, "window.performance is defined and not null."); > } > } > >@@ -42,3 +47,10 @@ function test_entries(actualEntries, expectedEntries) { > } > }) > } >+ >+function delayedLoadListener(callback) { >+ window.addEventListener('load', function() { >+ // TODO(cvazac) Remove this setTimeout when spec enforces sync entries. >+ step_timeout(callback, 0) >+ }) >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/README.md b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/README.md >new file mode 100644 >index 00000000000..a2ae9aa8e16 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/README.md >@@ -0,0 +1,13 @@ >+This directory contains the common infrastructure for the following tests. >+- referrer-policy/ >+- mixed-content/ >+- upgrade-insecure-requests/ >+ >+Subdirectories: >+- `subresource`: >+ Serves subresources, with support for redirects, stash, etc. >+ The subresource paths are managed by `subresourceMap` and >+ fetched in `requestVia*()` functions in `resources/common.js`. >+- `scope`: >+ Serves nested contexts, such as iframe documents or workers. >+ Used from `invokeFrom*()` functions in `resources/common.js`. >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/resources/common.js b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/resources/common.js >new file mode 100644 >index 00000000000..782e428c66f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/resources/common.js >@@ -0,0 +1,1124 @@ >+/** >+ * @fileoverview Utilities for mixed-content in Web Platform Tests. >+ * @author burnik@google.com (Kristijan Burnik) >+ * Disclaimer: Some methods of other authors are annotated in the corresponding >+ * method's JSDoc. >+ */ >+ >+// =============================================================== >+// Types >+// =============================================================== >+// Objects of the following types are used to represent what kind of >+// subresource requests should be sent with what kind of policies, >+// from what kind of possibly nested source contexts. >+// The objects are represented as JSON objects (not JavaScript/Python classes >+// in a strict sense) to be passed between JavaScript/Python code. >+ >+// Note: So far this document covers: >+// - resources/common.js : client-side test infra code >+// - scope/ - server-side scripts that serves nested source contexts >+// but doesn't cover: >+// - tools/ - generator scripts that generates top-level HTML documents. >+// There are some policies only handled by generators (e.g. mixed-content >+// opt-ins) and not yet covered by the docs here. >+ >+/** >+ @typedef PolicyDelivery >+ @type {object} >+ Referrer policy etc. can be applied/delivered in several ways. >+ A PolicyDelivery object specifies what policy is delivered and how. >+ >+ @property {string} deliveryType >+ Specifies how the policy is delivered. >+ The valid deliveryType are: >+ >+ "attr" >+ [A] DOM attributes e.g. referrerPolicy. >+ >+ "rel-noref" >+ [A] <link rel="noreferrer"> (referrer-policy only). >+ >+ "http-rp" >+ [B] HTTP response headers. >+ >+ "meta" >+ [B] <meta> elements. >+ >+ @property {string} key >+ @property {string} value >+ Specifies what policy to be delivered. The valid keys are: >+ >+ "referrerPolicy" >+ Referrer Policy >+ https://w3c.github.io/webappsec-referrer-policy/ >+ Valid values are those listed in >+ https://w3c.github.io/webappsec-referrer-policy/#referrer-policy >+ (except that "" is represented as null/None) >+ >+ A PolicyDelivery can be specified in several ways: >+ >+ - (for [A]) Associated with an individual subresource request and >+ specified in `Subresource.policies`, >+ e.g. referrerPolicy attributes of DOM elements. >+ This is handled in invokeRequest(). >+ >+ - (for [B]) Associated with an nested environmental settings object and >+ specified in `SourceContext.policies`, >+ e.g. HTTP referrer-policy response headers of HTML/worker scripts. >+ This is handled in server-side under /common/security-features/scope/. >+ >+ - (for [B]) Associated with the top-level HTML document. >+ This is handled by the generators.d >+*/ >+ >+/** >+ @typedef Subresource >+ @type {object} >+ A Subresource represents how a subresource request is sent. >+ >+ @property{SubresourceType} subresourceType >+ How the subresource request is sent, >+ e.g. "img-tag" for sending a request via <img src>. >+ See the keys of `subresourceMap` for valid values. >+ >+ @property{string} url >+ subresource's URL. >+ Typically this is constructed by getRequestURLs() below. >+ >+ @property{PolicyDelivery} policyDeliveries >+ Policies delivered specific to the subresource request. >+*/ >+ >+/** >+ @typedef SourceContext >+ @type {object} >+ Requests can be possibly sent from various kinds of source contexts, i.e. >+ fetch client's environment settings objects: >+ top-level windows, iframes, or workers. >+ A SourceContext object specifies one environment settings object, and >+ an Array<SourceContext> specifies a possibly nested context, >+ from the outer-most to inner-most environment settings objects. >+ >+ For example: >+ [{sourceContextType: "srcdoc"}, {sourceContextType: "classic-worker"}] >+ means that a subresource request is to be sent from >+ a classic dedicated worker created from <iframe srcdoc> >+ inside the top-level HTML document. >+ Note: the top-level document is not included in the array and >+ is assumed implicitly. >+ >+ SourceContext (or Array<SourceContext>) is set based on >+ the fetch client's settings object that is used for the subresource request, >+ NOT on module map settings object, and >+ NOT on the inner-most settings object that appears in the test. >+ For example, Array<SourceContext> is `[]` (indicating the top Window) >+ for `worker.js` >+ - When it is the root worker script: `new Worker('worker.js')`, or >+ - When it is imported from the root worker script: >+ `new Worker('top.js', {type: 'module'})` >+ where `top.js` has `import 'worker.js'`. >+ because the request for `worker.js` uses the Window as its fetch client's >+ settings object, while a WorkerGlobalScope is created though. >+ >+ @property {string} sourceContextType >+ Kind of the source context to be used. >+ Valid values are the keys of `sourceContextMap` below. >+ >+ @property {Array<PolicyDelivery>} policyDeliveries >+ A list of PolicyDelivery applied to the source context. >+*/ >+ >+// =============================================================== >+// General utility functions >+// =============================================================== >+ >+function timeoutPromise(t, ms) { >+ return new Promise(resolve => { t.step_timeout(resolve, ms); }); >+} >+ >+/** >+ * Normalizes the target port for use in a URL. For default ports, this is the >+ * empty string (omitted port), otherwise it's a colon followed by the port >+ * number. Ports 80, 443 and an empty string are regarded as default ports. >+ * @param {number} targetPort The port to use >+ * @return {string} The port portion for using as part of a URL. >+ */ >+function getNormalizedPort(targetPort) { >+ return ([80, 443, ""].indexOf(targetPort) >= 0) ? "" : ":" + targetPort; >+} >+ >+/** >+ * Creates a GUID. >+ * See: https://en.wikipedia.org/wiki/Globally_unique_identifier >+ * Original author: broofa (http://www.broofa.com/) >+ * Sourced from: http://stackoverflow.com/a/2117523/4949715 >+ * @return {string} A pseudo-random GUID. >+ */ >+function guid() { >+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { >+ var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); >+ return v.toString(16); >+ }); >+} >+ >+/** >+ * Initiates a new XHR via GET. >+ * @param {string} url The endpoint URL for the XHR. >+ * @param {string} responseType Optional - how should the response be parsed. >+ * Default is "json". >+ * See: https://xhr.spec.whatwg.org/#dom-xmlhttprequest-responsetype >+ * @return {Promise} A promise wrapping the success and error events. >+ */ >+function xhrRequest(url, responseType) { >+ return new Promise(function(resolve, reject) { >+ var xhr = new XMLHttpRequest(); >+ xhr.open('GET', url, true); >+ xhr.responseType = responseType || "json"; >+ >+ xhr.addEventListener("error", function() { >+ reject(Error("Network Error")); >+ }); >+ >+ xhr.addEventListener("load", function() { >+ if (xhr.status != 200) >+ reject(Error(xhr.statusText)); >+ else >+ resolve(xhr.response); >+ }); >+ >+ xhr.send(); >+ }); >+} >+ >+/** >+ * Sets attributes on a given DOM element. >+ * @param {DOMElement} element The element on which to set the attributes. >+ * @param {object} An object with keys (serving as attribute names) and values. >+ */ >+function setAttributes(el, attrs) { >+ attrs = attrs || {} >+ for (var attr in attrs) { >+ if (attr !== 'src') >+ el.setAttribute(attr, attrs[attr]); >+ } >+ // Workaround for Chromium: set <img>'s src attribute after all other >+ // attributes to ensure the policy is applied. >+ for (var attr in attrs) { >+ if (attr === 'src') >+ el.setAttribute(attr, attrs[attr]); >+ } >+} >+ >+/** >+ * Binds to success and error events of an object wrapping them into a promise >+ * available through {@code element.eventPromise}. The success event >+ * resolves and error event rejects. >+ * This method adds event listeners, and then removes all the added listeners >+ * when one of listened event is fired. >+ * @param {object} element An object supporting events on which to bind the >+ * promise. >+ * @param {string} resolveEventName [="load"] The event name to bind resolve to. >+ * @param {string} rejectEventName [="error"] The event name to bind reject to. >+ */ >+function bindEvents(element, resolveEventName, rejectEventName) { >+ element.eventPromise = >+ bindEvents2(element, resolveEventName, element, rejectEventName); >+} >+ >+// Returns a promise wrapping success and error events of objects. >+// This is a variant of bindEvents that can accept separate objects for each >+// events and two events to reject, and doesn't set `eventPromise`. >+// >+// When `resolveObject`'s `resolveEventName` event (default: "load") is >+// fired, the promise is resolved with the event. >+// >+// When `rejectObject`'s `rejectEventName` event (default: "error") or >+// `rejectObject2`'s `rejectEventName2` event (default: "error") is >+// fired, the promise is rejected. >+// >+// `rejectObject2` is optional. >+function bindEvents2(resolveObject, resolveEventName, rejectObject, rejectEventName, rejectObject2, rejectEventName2) { >+ return new Promise(function(resolve, reject) { >+ const actualResolveEventName = resolveEventName || "load"; >+ const actualRejectEventName = rejectEventName || "error"; >+ const actualRejectEventName2 = rejectEventName2 || "error"; >+ >+ const resolveHandler = function(event) { >+ cleanup(); >+ resolve(event); >+ }; >+ >+ const rejectHandler = function(event) { >+ // Chromium starts propagating errors from worker.onerror to >+ // window.onerror. This handles the uncaught exceptions in tests. >+ event.preventDefault(); >+ cleanup(); >+ reject(event); >+ }; >+ >+ const cleanup = function() { >+ resolveObject.removeEventListener(actualResolveEventName, resolveHandler); >+ rejectObject.removeEventListener(actualRejectEventName, rejectHandler); >+ if (rejectObject2) { >+ rejectObject2.removeEventListener(actualRejectEventName2, rejectHandler); >+ } >+ }; >+ >+ resolveObject.addEventListener(actualResolveEventName, resolveHandler); >+ rejectObject.addEventListener(actualRejectEventName, rejectHandler); >+ if (rejectObject2) { >+ rejectObject2.addEventListener(actualRejectEventName2, rejectHandler); >+ } >+ }); >+} >+ >+/** >+ * Creates a new DOM element. >+ * @param {string} tagName The type of the DOM element. >+ * @param {object} attrs A JSON with attributes to apply to the element. >+ * @param {DOMElement} parent Optional - an existing DOM element to append to >+ * If not provided, the returned element will remain orphaned. >+ * @param {boolean} doBindEvents Optional - Whether to bind to load and error >+ * events and provide the promise wrapping the events via the element's >+ * {@code eventPromise} property. Default value evaluates to false. >+ * @return {DOMElement} The newly created DOM element. >+ */ >+function createElement(tagName, attrs, parentNode, doBindEvents) { >+ var element = document.createElement(tagName); >+ >+ if (doBindEvents) >+ bindEvents(element); >+ >+ // We set the attributes after binding to events to catch any >+ // event-triggering attribute changes. E.g. form submission. >+ // >+ // But be careful with images: unlike other elements they will start the load >+ // as soon as the attr is set, even if not in the document yet, and sometimes >+ // complete it synchronously, so the append doesn't have the effect we want. >+ // So for images, we want to set the attrs after appending, whereas for other >+ // elements we want to do it before appending. >+ var isImg = (tagName == "img"); >+ if (!isImg) >+ setAttributes(element, attrs); >+ >+ if (parentNode) >+ parentNode.appendChild(element); >+ >+ if (isImg) >+ setAttributes(element, attrs); >+ >+ return element; >+} >+ >+function createRequestViaElement(tagName, attrs, parentNode) { >+ return createElement(tagName, attrs, parentNode, true).eventPromise; >+} >+ >+/** >+ * Creates a new empty iframe and appends it to {@code document.body} . >+ * @param {string} name The name and ID of the new iframe. >+ * @param {boolean} doBindEvents Whether to bind load and error events. >+ * @return {DOMElement} The newly created iframe. >+ */ >+function createHelperIframe(name, doBindEvents) { >+ return createElement("iframe", >+ {"name": name, "id": name}, >+ document.body, >+ doBindEvents); >+} >+ >+function wrapResult(server_data) { >+ if (typeof(server_data) === "string") { >+ throw server_data; >+ } >+ return { >+ referrer: server_data.headers.referer, >+ headers: server_data.headers >+ } >+} >+ >+// =============================================================== >+// Subresources >+// =============================================================== >+ >+/** >+ @typedef RequestResult >+ @type {object} >+ Represents the result of sending an request. >+ All properties are optional. See the comments for >+ requestVia*() and invokeRequest() below to see which properties are set. >+ >+ @property {Array<Object<string, string>>} headers >+ HTTP request headers sent to server. >+ @property {string} referrer - Referrer. >+ @property {string} location - The URL of the subresource. >+ @property {string} sourceContextUrl >+ the URL of the global object where the actual request is sent. >+*/ >+ >+/** >+ requestVia*(url, additionalAttributes) functions send a subresource >+ request from the current environment settings object. >+ >+ @param {string} url >+ The URL of the subresource. >+ @param {Object<string, string>} additionalAttributes >+ Additional attributes set to DOM elements >+ (element-initiated requests only). >+ >+ @returns {Promise} that are resolved with a RequestResult object >+ on successful requests. >+ >+ - Category 1: >+ `headers`: set. >+ `referrer`: set via `document.referrer`. >+ `location`: set via `document.location`. >+ See `template/document.html.template`. >+ - Category 2: >+ `headers`: set. >+ `referrer`: set to `headers.referer` by `wrapResult()`. >+ `location`: not set. >+ - Category 3: >+ All the keys listed above are NOT set. >+ `sourceContextUrl` is not set here. >+ >+ -------------------------------- -------- -------------------------- >+ Function name Category Used in >+ -------- ------- --------- >+ referrer mixed- upgrade- >+ policy content insecure- >+ policy content request >+ -------------------------------- -------- -------- ------- --------- >+ requestViaAnchor 1 Y Y - >+ requestViaArea 1 Y Y - >+ requestViaAudio 3 - Y - >+ requestViaDedicatedWorker 2 Y Y Y >+ requestViaFetch 2 Y Y - >+ requestViaForm 3 - Y - >+ requestViaIframe 1 Y Y - >+ requestViaImage 2 Y Y - >+ requestViaLinkPrefetch 3 - Y - >+ requestViaLinkStylesheet 3 - Y - >+ requestViaObject 3 - Y - >+ requestViaPicture 3 - Y - >+ requestViaScript 2 Y Y - >+ requestViaSendBeacon 3 - Y - >+ requestViaSharedWorker 2 Y - - >+ requestViaVideo 3 - Y - >+ requestViaWebSocket 3 - Y - >+ requestViaWorklet 3 - Y Y >+ requestViaXhr 2 Y Y - >+ -------------------------------- -------- -------- ------- --------- >+*/ >+ >+/** >+ * Creates a new iframe, binds load and error events, sets the src attribute and >+ * appends it to {@code document.body} . >+ * @param {string} url The src for the iframe. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaIframe(url, additionalAttributes) { >+ const iframe = createElement( >+ "iframe", >+ Object.assign({"src": url}, additionalAttributes), >+ document.body, >+ false); >+ return bindEvents2(window, "message", iframe, "error", window, "error") >+ .then(event => { >+ assert_equals(event.source, iframe.contentWindow); >+ return event.data; >+ }); >+} >+ >+/** >+ * Creates a new image, binds load and error events, sets the src attribute and >+ * appends it to {@code document.body} . >+ * @param {string} url The src for the image. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaImage(url, additionalAttributes) { >+ const img = createElement( >+ "img", >+ // crossOrigin attribute is added to read the pixel data of the response. >+ Object.assign({"src": url, "crossOrigin": "Anonymous"}, additionalAttributes), >+ document.body, true); >+ return img.eventPromise.then(() => wrapResult(decodeImageData(img))); >+} >+ >+// Helper for requestViaImage(). >+function decodeImageData(img) { >+ var canvas = document.createElement("canvas"); >+ var context = canvas.getContext('2d'); >+ context.drawImage(img, 0, 0); >+ var imgData = context.getImageData(0, 0, img.clientWidth, img.clientHeight); >+ const rgba = imgData.data; >+ >+ let decodedBytes = new Uint8ClampedArray(rgba.length); >+ let decodedLength = 0; >+ >+ for (var i = 0; i + 12 <= rgba.length; i += 12) { >+ // A single byte is encoded in three pixels. 8 pixel octets (among >+ // 9 octets = 3 pixels * 3 channels) are used to encode 8 bits, >+ // the most significant bit first, where `0` and `255` in pixel values >+ // represent `0` and `1` in bits, respectively. >+ // This encoding is used to avoid errors due to different color spaces. >+ const bits = []; >+ for (let j = 0; j < 3; ++j) { >+ bits.push(rgba[i + j * 4 + 0]); >+ bits.push(rgba[i + j * 4 + 1]); >+ bits.push(rgba[i + j * 4 + 2]); >+ // rgba[i + j * 4 + 3]: Skip alpha channel. >+ } >+ // The last one element is not used. >+ bits.pop(); >+ >+ // Decode a single byte. >+ let byte = 0; >+ for (let j = 0; j < 8; ++j) { >+ byte <<= 1; >+ if (bits[j] >= 128) >+ byte |= 1; >+ } >+ >+ // Zero is the string terminator. >+ if (byte == 0) >+ break; >+ >+ decodedBytes[decodedLength++] = byte; >+ } >+ >+ // Remove trailing nulls from data. >+ decodedBytes = decodedBytes.subarray(0, decodedLength); >+ var string_data = (new TextDecoder("ascii")).decode(decodedBytes); >+ >+ return JSON.parse(string_data); >+} >+ >+/** >+ * Initiates a new XHR GET request to provided URL. >+ * @param {string} url The endpoint URL for the XHR. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaXhr(url) { >+ return xhrRequest(url).then(result => wrapResult(result)); >+} >+ >+/** >+ * Initiates a new GET request to provided URL via the Fetch API. >+ * @param {string} url The endpoint URL for the Fetch. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaFetch(url) { >+ return fetch(url) >+ .then(res => res.json()) >+ .then(j => wrapResult(j)); >+} >+ >+function dedicatedWorkerUrlThatFetches(url) { >+ return `data:text/javascript, >+ fetch('${url}') >+ .then(r => r.json()) >+ .then(j => postMessage(j)) >+ .catch((e) => postMessage(e.message));`; >+} >+ >+function workerUrlThatImports(url) { >+ return `data:text/javascript,import '${url}';`; >+} >+ >+/** >+ * Creates a new Worker, binds message and error events wrapping them into. >+ * {@code worker.eventPromise} and posts an empty string message to start >+ * the worker. >+ * @param {string} url The endpoint URL for the worker script. >+ * @param {object} options The options for Worker constructor. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaDedicatedWorker(url, options) { >+ var worker; >+ try { >+ worker = new Worker(url, options); >+ } catch (e) { >+ return Promise.reject(e); >+ } >+ worker.postMessage(''); >+ return bindEvents2(worker, "message", worker, "error") >+ .then(event => wrapResult(event.data)); >+} >+ >+function requestViaSharedWorker(url) { >+ var worker; >+ try { >+ worker = new SharedWorker(url); >+ } catch(e) { >+ return Promise.reject(e); >+ } >+ const promise = bindEvents2(worker.port, "message", worker, "error") >+ .then(event => wrapResult(event.data)); >+ worker.port.start(); >+ return promise; >+} >+ >+// Returns a reference to a worklet object corresponding to a given type. >+function get_worklet(type) { >+ if (type == 'animation') >+ return CSS.animationWorklet; >+ if (type == 'layout') >+ return CSS.layoutWorklet; >+ if (type == 'paint') >+ return CSS.paintWorklet; >+ if (type == 'audio') >+ return new OfflineAudioContext(2,44100*40,44100).audioWorklet; >+ >+ assert_unreached('unknown worklet type is passed.'); >+ return undefined; >+} >+ >+function requestViaWorklet(type, url) { >+ try { >+ return get_worklet(type).addModule(url); >+ } catch (e) { >+ return Promise.reject(e); >+ } >+} >+ >+/** >+ * Sets the href attribute on a navigable DOM element and performs a navigation >+ * by clicking it. To avoid navigating away from the current execution >+ * context, a target attribute is set to point to a new helper iframe. >+ * @param {DOMElement} navigableElement The navigable DOMElement >+ * @param {string} url The href for the navigable element. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaNavigable(navigableElement, url) { >+ var iframe = createHelperIframe(guid(), false); >+ setAttributes(navigableElement, >+ {"href": url, >+ "target": iframe.name}); >+ >+ const promise = >+ bindEvents2(window, "message", iframe, "error", window, "error") >+ .then(event => { >+ assert_equals(event.source, iframe.contentWindow, "event.source"); >+ return event.data; >+ }); >+ navigableElement.click(); >+ return promise; >+} >+ >+/** >+ * Creates a new anchor element, appends it to {@code document.body} and >+ * performs the navigation. >+ * @param {string} url The URL to navigate to. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaAnchor(url, additionalAttributes) { >+ var a = createElement( >+ "a", >+ Object.assign({"innerHTML": "Link to resource"}, additionalAttributes), >+ document.body); >+ >+ return requestViaNavigable(a, url); >+} >+ >+/** >+ * Creates a new area element, appends it to {@code document.body} and performs >+ * the navigation. >+ * @param {string} url The URL to navigate to. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaArea(url, additionalAttributes) { >+ var area = createElement( >+ "area", >+ Object.assign({}, additionalAttributes), >+ document.body); >+ >+ // TODO(kristijanburnik): Append to map and add image. >+ return requestViaNavigable(area, url); >+} >+ >+/** >+ * Creates a new script element, sets the src to url, and appends it to >+ * {@code document.body}. >+ * @param {string} url The src URL. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaScript(url, additionalAttributes) { >+ const script = createElement( >+ "script", >+ Object.assign({"src": url}, additionalAttributes), >+ document.body, >+ false); >+ >+ return bindEvents2(window, "message", script, "error", window, "error") >+ .then(event => wrapResult(event.data)); >+} >+ >+/** >+ * Creates a new form element, sets attributes, appends it to >+ * {@code document.body} and submits the form. >+ * @param {string} url The URL to submit to. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaForm(url) { >+ var iframe = createHelperIframe(guid()); >+ var form = createElement("form", >+ {"action": url, >+ "method": "POST", >+ "target": iframe.name}, >+ document.body); >+ bindEvents(iframe); >+ form.submit(); >+ >+ return iframe.eventPromise; >+} >+ >+/** >+ * Creates a new link element for a stylesheet, binds load and error events, >+ * sets the href to url and appends it to {@code document.head}. >+ * @param {string} url The URL for a stylesheet. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaLinkStylesheet(url) { >+ return createRequestViaElement("link", >+ {"rel": "stylesheet", "href": url}, >+ document.head); >+} >+ >+/** >+ * Creates a new link element for a prefetch, binds load and error events, sets >+ * the href to url and appends it to {@code document.head}. >+ * @param {string} url The URL of a resource to prefetch. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaLinkPrefetch(url) { >+ var link = document.createElement('link'); >+ if (link.relList && link.relList.supports && link.relList.supports("prefetch")) { >+ return createRequestViaElement("link", >+ {"rel": "prefetch", "href": url}, >+ document.head); >+ } else { >+ return Promise.reject("This browser does not support 'prefetch'."); >+ } >+} >+ >+/** >+ * Initiates a new beacon request. >+ * @param {string} url The URL of a resource to prefetch. >+ * @return {Promise} The promise for success/error events. >+ */ >+async function requestViaSendBeacon(url) { >+ function wait(ms) { >+ return new Promise(resolve => step_timeout(resolve, ms)); >+ } >+ if (!navigator.sendBeacon(url)) { >+ // If mixed-content check fails, it should return false. >+ throw new Error('sendBeacon() fails.'); >+ } >+ // We don't have a means to see the result of sendBeacon() request >+ // for sure. Let's wait for a while and let the generic test function >+ // ask the server for the result. >+ await wait(500); >+ return 'allowed'; >+} >+ >+/** >+ * Creates a new media element with a child source element, binds loadeddata and >+ * error events, sets attributes and appends to document.body. >+ * @param {string} type The type of the media element (audio/video/picture). >+ * @param {object} media_attrs The attributes for the media element. >+ * @param {object} source_attrs The attributes for the child source element. >+ * @return {DOMElement} The newly created media element. >+ */ >+function createMediaElement(type, media_attrs, source_attrs) { >+ var mediaElement = createElement(type, {}); >+ >+ var sourceElement = createElement("source", {}); >+ >+ mediaElement.eventPromise = new Promise(function(resolve, reject) { >+ mediaElement.addEventListener("loadeddata", function (e) { >+ resolve(e); >+ }); >+ >+ // Safari doesn't fire an `error` event when blocking mixed content. >+ mediaElement.addEventListener("stalled", function(e) { >+ reject(e); >+ }); >+ >+ sourceElement.addEventListener("error", function(e) { >+ reject(e); >+ }); >+ }); >+ >+ setAttributes(mediaElement, media_attrs); >+ setAttributes(sourceElement, source_attrs); >+ >+ mediaElement.appendChild(sourceElement); >+ document.body.appendChild(mediaElement); >+ >+ return mediaElement; >+} >+ >+/** >+ * Creates a new video element, binds loadeddata and error events, sets >+ * attributes and source URL and appends to {@code document.body}. >+ * @param {string} url The URL of the video. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaVideo(url) { >+ return createMediaElement("video", >+ {}, >+ {"src": url}).eventPromise; >+} >+ >+/** >+ * Creates a new audio element, binds loadeddata and error events, sets >+ * attributes and source URL and appends to {@code document.body}. >+ * @param {string} url The URL of the audio. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaAudio(url) { >+ return createMediaElement("audio", >+ {}, >+ {"type": "audio/wav", "src": url}).eventPromise; >+} >+ >+/** >+ * Creates a new picture element, binds loadeddata and error events, sets >+ * attributes and source URL and appends to {@code document.body}. Also >+ * creates new image element appending it to the picture >+ * @param {string} url The URL of the image for the source and image elements. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaPicture(url) { >+ var picture = createMediaElement("picture", {}, {"srcset": url, >+ "type": "image/png"}); >+ return createRequestViaElement("img", {"src": url}, picture); >+} >+ >+/** >+ * Creates a new object element, binds load and error events, sets the data to >+ * url, and appends it to {@code document.body}. >+ * @param {string} url The data URL. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaObject(url) { >+ return createRequestViaElement("object", {"data": url, "type": "text/html"}, document.body); >+} >+ >+/** >+ * Creates a new WebSocket pointing to {@code url} and sends a message string >+ * "echo". The {@code message} and {@code error} events are triggering the >+ * returned promise resolve/reject events. >+ * @param {string} url The URL for WebSocket to connect to. >+ * @return {Promise} The promise for success/error events. >+ */ >+function requestViaWebSocket(url) { >+ return new Promise(function(resolve, reject) { >+ var websocket = new WebSocket(url); >+ >+ websocket.addEventListener("message", function(e) { >+ resolve(e.data); >+ }); >+ >+ websocket.addEventListener("open", function(e) { >+ websocket.send("echo"); >+ }); >+ >+ websocket.addEventListener("error", function(e) { >+ reject(e) >+ }); >+ }) >+ .then(data => { >+ return JSON.parse(data); >+ }); >+} >+ >+/** >+ @typedef SubresourceType >+ @type {string} >+ >+ Represents how a subresource is sent. >+ The keys of `subresourceMap` below are the valid values. >+*/ >+ >+// Subresource paths and invokers. >+const subresourceMap = { >+ "a-tag": { >+ path: "/common/security-features/subresource/document.py", >+ invoker: requestViaAnchor, >+ }, >+ "area-tag": { >+ path: "/common/security-features/subresource/document.py", >+ invoker: requestViaArea, >+ }, >+ "audio-tag": { >+ path: "/common/security-features/subresource/audio.py", >+ invoker: requestViaAudio, >+ }, >+ "beacon-request": { >+ path: "/common/security-features/subresource/empty.py", >+ invoker: requestViaSendBeacon, >+ }, >+ "fetch-request": { >+ path: "/common/security-features/subresource/xhr.py", >+ invoker: requestViaFetch, >+ }, >+ "form-tag": { >+ path: "/common/security-features/subresource/empty.py", >+ invoker: requestViaForm, >+ }, >+ "iframe-tag": { >+ path: "/common/security-features/subresource/document.py", >+ invoker: requestViaIframe, >+ }, >+ "img-tag": { >+ path: "/common/security-features/subresource/image.py", >+ invoker: requestViaImage, >+ }, >+ "link-css-tag": { >+ path: "/common/security-features/subresource/empty.py", >+ invoker: requestViaLinkStylesheet, >+ }, >+ "link-prefetch-tag": { >+ path: "/common/security-features/subresource/empty.py", >+ invoker: requestViaLinkPrefetch, >+ }, >+ "object-tag": { >+ path: "/common/security-features/subresource/empty.py", >+ invoker: requestViaObject, >+ }, >+ "picture-tag": { >+ path: "/common/security-features/subresource/image.py", >+ invoker: requestViaPicture, >+ }, >+ "script-tag": { >+ path: "/common/security-features/subresource/script.py", >+ invoker: requestViaScript, >+ }, >+ "video-tag": { >+ path: "/common/security-features/subresource/video.py", >+ invoker: requestViaVideo, >+ }, >+ "xhr-request": { >+ path: "/common/security-features/subresource/xhr.py", >+ invoker: requestViaXhr, >+ }, >+ >+ "worker-request": { >+ path: "/common/security-features/subresource/worker.py", >+ invoker: url => requestViaDedicatedWorker(url), >+ }, >+ // TODO: Merge "module-worker" and "module-worker-top-level". >+ "module-worker": { >+ path: "/common/security-features/subresource/worker.py", >+ invoker: url => requestViaDedicatedWorker(url, {type: "module"}), >+ }, >+ "module-worker-top-level": { >+ path: "/common/security-features/subresource/worker.py", >+ invoker: url => requestViaDedicatedWorker(url, {type: "module"}), >+ }, >+ "module-data-worker-import": { >+ path: "/common/security-features/subresource/worker.py", >+ invoker: url => >+ requestViaDedicatedWorker(workerUrlThatImports(url), {type: "module"}), >+ }, >+ "classic-data-worker-fetch": { >+ path: "/common/security-features/subresource/empty.py", >+ invoker: url => >+ requestViaDedicatedWorker(dedicatedWorkerUrlThatFetches(url), {}), >+ }, >+ "shared-worker": { >+ path: "/common/security-features/subresource/shared-worker.py", >+ invoker: requestViaSharedWorker, >+ }, >+ >+ "websocket-request": { >+ path: "/stash_responder", >+ invoker: requestViaWebSocket, >+ }, >+}; >+for (const workletType of ['animation', 'audio', 'layout', 'paint']) { >+ subresourceMap[`worklet-${workletType}-top-level`] = { >+ path: "/common/security-features/subresource/worker.py", >+ invoker: url => requestViaWorklet(workletType, url) >+ }; >+ subresourceMap[`worklet-${workletType}-data-import`] = { >+ path: "/common/security-features/subresource/worker.py", >+ invoker: url => >+ requestViaWorklet(workletType, workerUrlThatImports(url)) >+ }; >+} >+ >+/** >+ @typedef RedirectionType >+ @type {string} >+ >+ Represents what redirects should occur to the subresource request >+ after initial request. >+ See preprocess_redirection() in >+ /common/security-features/subresource/subresource.py for valid values. >+*/ >+ >+/** >+ Construct subresource (and related) URLs. >+ >+ @param {SubresourceType} subresourceType >+ @param {OriginType} originType >+ @param {RedirectionType} redirectionType >+ @returns {object} with following properties: >+ {string} testUrl >+ The subresource request URL. >+ {string} announceUrl >+ {string} assertUrl >+ The URLs to be used for detecting whether `testUrl` is actually sent >+ to the server. >+ 1. Fetch `announceUrl` first, >+ 2. then possibly fetch `testUrl`, and >+ 3. finally fetch `assertUrl`. >+ The fetch result of `assertUrl` should indicate whether >+ `testUrl` is actually sent to the server or not. >+*/ >+function getRequestURLs(subresourceType, originType, redirectionType) { >+ const key = guid(); >+ const value = guid(); >+ >+ // We use the same stash path for both HTTP/S and WS/S stash requests. >+ const stashPath = encodeURIComponent("/mixed-content"); >+ >+ const stashEndpoint = "/common/security-features/subresource/xhr.py?key=" + >+ key + "&path=" + stashPath; >+ return { >+ testUrl: >+ getSubresourceOrigin(originType) + >+ subresourceMap[subresourceType].path + >+ "?redirection=" + encodeURIComponent(redirectionType) + >+ "&action=purge&key=" + key + >+ "&path=" + stashPath, >+ announceUrl: stashEndpoint + "&action=put&value=" + value, >+ assertUrl: stashEndpoint + "&action=take", >+ }; >+} >+ >+// =============================================================== >+// Source Context >+// =============================================================== >+// Requests can be sent from several source contexts, >+// such as the main documents, iframes, workers, or so, >+// possibly nested, and possibly with <meta>/http headers added. >+// invokeRequest() and invokeFrom*() functions handles >+// SourceContext-related setup in client-side. >+ >+/** >+ invokeRequest() invokes a subresource request >+ (specified as `subresource`) >+ from a (possibly nested) environment settings object >+ (specified as `sourceContextList`). >+ >+ For nested contexts, invokeRequest() calls an invokeFrom*() function >+ that creates a nested environment settings object using >+ /common/security-features/scope/, which calls invokeRequest() >+ again inside the nested environment settings object. >+ This cycle continues until all specified >+ nested environment settings object are created, and >+ finally invokeRequest() calls a requestVia*() function to start the >+ subresource request from the inner-most environment settings object. >+ >+ @param {Subresource} subresource >+ @param {Array<SourceContext>} sourceContextList >+ >+ @returns {Promise} A promise that is resolved with an RequestResult object. >+ `sourceContextUrl` is always set. For whether other properties are set, >+ see the comments for requestVia*() above. >+*/ >+function invokeRequest(subresource, sourceContextList) { >+ if (sourceContextList.length === 0) { >+ // No further nested global objects. Send the subresource request here. >+ >+ const additionalAttributes = {}; >+ /** @type {PolicyDelivery} policyDelivery */ >+ for (const policyDelivery of (subresource.policyDeliveries || [])) { >+ // Depending on the delivery method, extend the subresource element with >+ // these attributes. >+ if (policyDelivery.deliveryType === "attr") { >+ additionalAttributes[policyDelivery.key] = policyDelivery.value; >+ } else if (policyDelivery.deliveryType === "rel-noref") { >+ additionalAttributes["rel"] = "noreferrer"; >+ } >+ } >+ >+ return subresourceMap[subresource.subresourceType].invoker( >+ subresource.url, >+ additionalAttributes) >+ .then(result => Object.assign( >+ {sourceContextUrl: location.toString()}, >+ result)); >+ } >+ >+ // Defines invokers for each valid SourceContext.sourceContextType. >+ const sourceContextMap = { >+ "srcdoc": { // <iframe srcdoc></iframe> >+ invoker: invokeFromIframe, >+ }, >+ "iframe": { // <iframe src="same-origin-URL"></iframe> >+ invoker: invokeFromIframe, >+ }, >+ }; >+ >+ return sourceContextMap[sourceContextList[0].sourceContextType].invoker( >+ subresource, sourceContextList); >+} >+ >+/** >+ invokeFrom*() functions are helper functions with the same parameters >+ and return values as invokeRequest(), that are tied to specific types >+ of top-most environment settings objects. >+ For example, invokeFromIframe() is the helper function for the cases where >+ sourceContextList[0] is an iframe. >+*/ >+ >+function invokeFromIframe(subresource, sourceContextList) { >+ const currentSourceContext = sourceContextList.shift(); >+ const frameUrl = >+ "/common/security-features/scope/document.py?policyDeliveries=" + >+ encodeURIComponent(JSON.stringify( >+ currentSourceContext.policyDeliveries || [])); >+ >+ let promise; >+ if (currentSourceContext.sourceContextType === 'srcdoc') { >+ promise = fetch(frameUrl) >+ .then(r => r.text()) >+ .then(srcdoc => { >+ return createElement("iframe", {srcdoc: srcdoc}, document.body, true); >+ }); >+ } else if (currentSourceContext.sourceContextType === 'iframe') { >+ promise = Promise.resolve( >+ createElement("iframe", {src: frameUrl}, document.body, true)); >+ } >+ >+ return promise >+ .then(iframe => { >+ return iframe.eventPromise >+ .then(() => { >+ const promise = bindEvents2( >+ window, "message", iframe, "error", window, "error"); >+ iframe.contentWindow.postMessage( >+ {subresource: subresource, >+ sourceContextList: sourceContextList}, >+ "*"); >+ return promise; >+ }) >+ .then(event => { >+ if (event.data.error) >+ return Promise.reject(event.data.error); >+ return event.data; >+ }); >+ }); >+} >+ >+// SanityChecker does nothing in release mode. See sanity-checker.js for debug >+// mode. >+function SanityChecker() {} >+SanityChecker.prototype.checkScenario = function() {}; >+SanityChecker.prototype.setFailTimeout = function(test, timeout) {}; >+SanityChecker.prototype.checkSubresourceResult = function() {}; >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/resources/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/resources/w3c-import.log >new file mode 100644 >index 00000000000..437e67a20d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/resources/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/resources/common.js >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/document.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/document.py >new file mode 100644 >index 00000000000..3fc61a1e7ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/document.py >@@ -0,0 +1,35 @@ >+import os, sys, json >+ >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import util >+ >+ >+def main(request, response): >+ policyDeliveries = json.loads(request.GET.first("policyDeliveries", "[]")) >+ maybe_additional_headers = {} >+ meta = '' >+ error = '' >+ for delivery in policyDeliveries: >+ if delivery['deliveryType'] == 'meta': >+ if delivery['key'] == 'referrerPolicy': >+ meta += '<meta name="referrer" content="%s">' % delivery['value'] >+ else: >+ error = 'invalid delivery key' >+ elif delivery['deliveryType'] == 'http-rp': >+ if delivery['key'] == 'referrerPolicy': >+ maybe_additional_headers['Referrer-Policy'] = delivery['value'] >+ else: >+ error = 'invalid delivery key' >+ else: >+ error = 'invalid deliveryType' >+ >+ handler = lambda: util.get_template("document.html.template") % ({ >+ "meta": meta, >+ "error": error >+ }) >+ util.respond( >+ request, >+ response, >+ payload_generator=handler, >+ content_type="text/html", >+ maybe_additional_headers=maybe_additional_headers) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/template/document.html.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/template/document.html.template >new file mode 100644 >index 00000000000..feccb69e9de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/template/document.html.template >@@ -0,0 +1,30 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ %(meta)s >+ <script src="/common/security-features/resources/common.js"></script> >+ <script> >+ // Receive a message from the parent and start the test. >+ function onMessageFromParent(event) { >+ // Because this window might receive messages from child iframe during >+ // tests, we first remove the listener here before staring the test. >+ window.removeEventListener('message', onMessageFromParent); >+ >+ const configurationError = "%(error)s"; >+ if (configurationError.length > 0) { >+ parent.postMessage({error: configurationError}, "*"); >+ return; >+ } >+ >+ invokeRequest(event.data.subresource, >+ event.data.sourceContextList) >+ .then(result => parent.postMessage(result, "*")) >+ .catch(e => { >+ const message = (e.error && e.error.stack) || e.message || "Error"; >+ parent.postMessage({error: message}, "*"); >+ }); >+ } >+ window.addEventListener('message', onMessageFromParent); >+ </script> >+ </head> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/template/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/template/w3c-import.log >new file mode 100644 >index 00000000000..bb8e7141b0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/template/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/template/document.html.template >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/util.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/util.py >new file mode 100644 >index 00000000000..42f8326b36a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/util.py >@@ -0,0 +1,42 @@ >+import os >+ >+ >+def get_template(template_basename): >+ script_directory = os.path.dirname(os.path.abspath(__file__)) >+ template_directory = os.path.abspath( >+ os.path.join(script_directory, "template")) >+ template_filename = os.path.join(template_directory, template_basename) >+ >+ with open(template_filename, "r") as f: >+ return f.read() >+ >+ >+def __noop(request, response): >+ return "" >+ >+ >+def respond(request, >+ response, >+ status_code=200, >+ content_type="text/html", >+ payload_generator=__noop, >+ cache_control="no-cache; must-revalidate", >+ access_control_allow_origin="*", >+ maybe_additional_headers=None): >+ response.add_required_headers = False >+ response.writer.write_status(status_code) >+ >+ if access_control_allow_origin != None: >+ response.writer.write_header("access-control-allow-origin", >+ access_control_allow_origin) >+ response.writer.write_header("content-type", content_type) >+ response.writer.write_header("cache-control", cache_control) >+ >+ additional_headers = maybe_additional_headers or {} >+ for header, value in additional_headers.items(): >+ response.writer.write_header(header, value) >+ >+ response.writer.end_headers() >+ >+ payload = payload_generator() >+ response.writer.write(payload) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/w3c-import.log >new file mode 100644 >index 00000000000..c6629e014b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/document.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/scope/util.py >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/__init__.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/__init__.py >new file mode 100644 >index 00000000000..a6834b8285a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/__init__.py >@@ -0,0 +1 @@ >+# This file is required for Python to search this directory for modules. >\ No newline at end of file >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/audio.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/audio.py >new file mode 100644 >index 00000000000..eb95045e031 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/audio.py >@@ -0,0 +1,18 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(request, server_data): >+ file = os.path.join(request.doc_root, "webaudio", "resources", >+ "sin_440Hz_-6dBFS_1s.wav") >+ return open(file, "rb").read() >+ >+ >+def main(request, response): >+ handler = lambda data: generate_payload(request, data) >+ subresource.respond(request, >+ response, >+ payload_generator = handler, >+ access_control_allow_origin = "*", >+ content_type = "audio/wav") >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/document.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/document.py >new file mode 100644 >index 00000000000..59e0dcd7bc6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/document.py >@@ -0,0 +1,11 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(server_data): >+ return subresource.get_template("document.html.template") % server_data >+ >+def main(request, response): >+ subresource.respond(request, >+ response, >+ payload_generator = generate_payload) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/empty.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/empty.py >new file mode 100644 >index 00000000000..132e85ddeec >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/empty.py >@@ -0,0 +1,14 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(server_data): >+ return '' >+ >+def main(request, response): >+ subresource.respond(request, >+ response, >+ payload_generator = generate_payload, >+ access_control_allow_origin = "*", >+ content_type = "text/plain") >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/font.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/font.py >new file mode 100644 >index 00000000000..26311a9f079 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/font.py >@@ -0,0 +1,72 @@ >+import os, sys, base64 >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(request, server_data): >+ data = ('{"headers": %(headers)s}') % server_data >+ if "id" in request.GET: >+ request.server.stash.put(request.GET["id"], data) >+ # Simple base64 encoded .tff font >+ return base64.decodestring("AAEAAAANAIAAAwBQRkZUTU6u6MkAAAXcAAAAHE9TLzJWYW" >+ "QKAAABWAAAAFZjbWFwAA8D7wAAAcAAAAFCY3Z0IAAhAnkA" >+ "AAMEAAAABGdhc3D//wADAAAF1AAAAAhnbHlmCC6aTwAAAx" >+ "QAAACMaGVhZO8ooBcAAADcAAAANmhoZWEIkAV9AAABFAAA" >+ "ACRobXR4EZQAhQAAAbAAAAAQbG9jYQBwAFQAAAMIAAAACm" >+ "1heHAASQA9AAABOAAAACBuYW1lehAVOgAAA6AAAAIHcG9z" >+ "dP+uADUAAAWoAAAAKgABAAAAAQAAMhPyuV8PPPUACwPoAA" >+ "AAAMU4Lm0AAAAAxTgubQAh/5wFeAK8AAAACAACAAAAAAAA" >+ "AAEAAAK8/5wAWgXcAAAAAAV4AAEAAAAAAAAAAAAAAAAAAA" >+ "AEAAEAAAAEAAwAAwAAAAAAAgAAAAEAAQAAAEAALgAAAAAA" >+ "AQXcAfQABQAAAooCvAAAAIwCigK8AAAB4AAxAQIAAAIABg" >+ "kAAAAAAAAAAAABAAAAAAAAAAAAAAAAUGZFZABAAEEAQQMg" >+ "/zgAWgK8AGQAAAABAAAAAAAABdwAIQAAAAAF3AAABdwAZA" >+ "AAAAMAAAADAAAAHAABAAAAAAA8AAMAAQAAABwABAAgAAAA" >+ "BAAEAAEAAABB//8AAABB////wgABAAAAAAAAAQYAAAEAAA" >+ "AAAAAAAQIAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAA" >+ "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAA" >+ "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" >+ "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" >+ "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" >+ "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" >+ "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" >+ "AAAAAAAAAAAAAAAAAAAhAnkAAAAqACoAKgBGAAAAAgAhAA" >+ "ABKgKaAAMABwAusQEALzyyBwQA7TKxBgXcPLIDAgDtMgCx" >+ "AwAvPLIFBADtMrIHBgH8PLIBAgDtMjMRIREnMxEjIQEJ6M" >+ "fHApr9ZiECWAAAAwBk/5wFeAK8AAMABwALAAABNSEVATUh" >+ "FQE1IRUB9AH0/UQDhPu0BRQB9MjI/tTIyP7UyMgAAAAAAA" >+ "4ArgABAAAAAAAAACYATgABAAAAAAABAAUAgQABAAAAAAAC" >+ "AAYAlQABAAAAAAADACEA4AABAAAAAAAEAAUBDgABAAAAAA" >+ "AFABABNgABAAAAAAAGAAUBUwADAAEECQAAAEwAAAADAAEE" >+ "CQABAAoAdQADAAEECQACAAwAhwADAAEECQADAEIAnAADAA" >+ "EECQAEAAoBAgADAAEECQAFACABFAADAAEECQAGAAoBRwBD" >+ "AG8AcAB5AHIAaQBnAGgAdAAgACgAYwApACAAMgAwADAAOA" >+ "AgAE0AbwB6AGkAbABsAGEAIABDAG8AcgBwAG8AcgBhAHQA" >+ "aQBvAG4AAENvcHlyaWdodCAoYykgMjAwOCBNb3ppbGxhIE" >+ "NvcnBvcmF0aW9uAABNAGEAcgBrAEEAAE1hcmtBAABNAGUA" >+ "ZABpAHUAbQAATWVkaXVtAABGAG8AbgB0AEYAbwByAGcAZQ" >+ "AgADIALgAwACAAOgAgAE0AYQByAGsAQQAgADoAIAA1AC0A" >+ "MQAxAC0AMgAwADAAOAAARm9udEZvcmdlIDIuMCA6IE1hcm" >+ "tBIDogNS0xMS0yMDA4AABNAGEAcgBrAEEAAE1hcmtBAABW" >+ "AGUAcgBzAGkAbwBuACAAMAAwADEALgAwADAAMAAgAABWZX" >+ "JzaW9uIDAwMS4wMDAgAABNAGEAcgBrAEEAAE1hcmtBAAAA" >+ "AgAAAAAAAP+DADIAAAABAAAAAAAAAAAAAAAAAAAAAAAEAA" >+ "AAAQACACQAAAAAAAH//wACAAAAAQAAAADEPovuAAAAAMU4" >+ "Lm0AAAAAxTgubQ=="); >+ >+def generate_report_headers_payload(request, server_data): >+ stashed_data = request.server.stash.take(request.GET["id"]) >+ return stashed_data >+ >+def main(request, response): >+ handler = lambda data: generate_payload(request, data) >+ content_type = 'application/x-font-truetype' >+ >+ if "report-headers" in request.GET: >+ handler = lambda data: generate_report_headers_payload(request, data) >+ content_type = 'application/json' >+ >+ subresource.respond(request, >+ response, >+ payload_generator = handler, >+ content_type = content_type, >+ access_control_allow_origin = "*") >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/image.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/image.py >new file mode 100644 >index 00000000000..42ebc0767bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/image.py >@@ -0,0 +1,111 @@ >+import os, sys, array, math, StringIO >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+class Image: >+ """This class partially implements the interface of the PIL.Image.Image. >+ One day in the future WPT might support the PIL module or another imaging >+ library, so this hacky BMP implementation will no longer be required. >+ """ >+ def __init__(self, width, height): >+ self.width = width >+ self.height = height >+ self.img = bytearray([0 for i in range(3 * width * height)]) >+ >+ @staticmethod >+ def new(mode, size, color=0): >+ return Image(size[0], size[1]) >+ >+ def _int_to_bytes(self, number): >+ packed_bytes = [0, 0, 0, 0] >+ for i in range(4): >+ packed_bytes[i] = number & 0xFF >+ number >>= 8 >+ >+ return packed_bytes >+ >+ def putdata(self, color_data): >+ for y in range(self.height): >+ for x in range(self.width): >+ i = x + y * self.width >+ if i > len(color_data) - 1: >+ return >+ >+ self.img[i * 3: i * 3 + 3] = color_data[i][::-1] >+ >+ def save(self, f, type): >+ assert type == "BMP" >+ # 54 bytes of preambule + image color data. >+ filesize = 54 + 3 * self.width * self.height; >+ # 14 bytes of header. >+ bmpfileheader = bytearray(['B', 'M'] + self._int_to_bytes(filesize) + >+ [0, 0, 0, 0, 54, 0, 0, 0]) >+ # 40 bytes of info. >+ bmpinfoheader = bytearray([40, 0, 0, 0] + >+ self._int_to_bytes(self.width) + >+ self._int_to_bytes(self.height) + >+ [1, 0, 24] + (25 * [0])) >+ >+ padlength = (4 - (self.width * 3) % 4) % 4 >+ bmppad = bytearray([0, 0, 0]); >+ padding = bmppad[0 : padlength] >+ >+ f.write(bmpfileheader) >+ f.write(bmpinfoheader) >+ >+ for i in range(self.height): >+ offset = self.width * (self.height - i - 1) * 3 >+ f.write(self.img[offset : offset + 3 * self.width]) >+ f.write(padding) >+ >+def encode_string_as_bmp_image(string_data): >+ data_bytes = array.array("B", string_data) >+ >+ num_bytes = len(data_bytes) >+ >+ # Encode data bytes to color data (RGB), one bit per channel. >+ # This is to avoid errors due to different color spaces used in decoding. >+ color_data = [] >+ for byte in data_bytes: >+ p = [int(x) * 255 for x in '{0:08b}'.format(byte)] >+ color_data.append((p[0], p[1], p[2])) >+ color_data.append((p[3], p[4], p[5])) >+ color_data.append((p[6], p[7], 0)) >+ >+ # Render image. >+ num_pixels = len(color_data) >+ sqrt = int(math.ceil(math.sqrt(num_pixels))) >+ img = Image.new("RGB", (sqrt, sqrt), "black") >+ img.putdata(color_data) >+ >+ # Flush image to string. >+ f = StringIO.StringIO() >+ img.save(f, "BMP") >+ f.seek(0) >+ >+ return f.read() >+ >+def generate_payload(request, server_data): >+ data = ('{"headers": %(headers)s}') % server_data >+ if "id" in request.GET: >+ request.server.stash.put(request.GET["id"], data) >+ data = encode_string_as_bmp_image(data) >+ return data >+ >+def generate_report_headers_payload(request, server_data): >+ stashed_data = request.server.stash.take(request.GET["id"]) >+ return stashed_data >+ >+def main(request, response): >+ handler = lambda data: generate_payload(request, data) >+ content_type = 'image/bmp' >+ >+ if "report-headers" in request.GET: >+ handler = lambda data: generate_report_headers_payload(request, data) >+ content_type = 'application/json' >+ >+ subresource.respond(request, >+ response, >+ payload_generator = handler, >+ content_type = content_type, >+ access_control_allow_origin = "*") >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/script.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/script.py >new file mode 100644 >index 00000000000..9d7cd0469f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/script.py >@@ -0,0 +1,13 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(server_data): >+ return subresource.get_template("script.js.template") % server_data >+ >+def main(request, response): >+ subresource.respond(request, >+ response, >+ payload_generator = generate_payload, >+ content_type = "application/javascript") >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/shared-worker.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/shared-worker.py >new file mode 100644 >index 00000000000..d8fd6876449 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/shared-worker.py >@@ -0,0 +1,12 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(server_data): >+ return subresource.get_template("shared-worker.js.template") % server_data >+ >+def main(request, response): >+ subresource.respond(request, >+ response, >+ payload_generator = generate_payload, >+ content_type = "application/javascript") >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/stylesheet.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/stylesheet.py >new file mode 100644 >index 00000000000..ec62a8cd5f2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/stylesheet.py >@@ -0,0 +1,54 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(request, server_data): >+ data = ('{"headers": %(headers)s}') % server_data >+ type = 'image' >+ if "type" in request.GET: >+ type = request.GET["type"] >+ >+ if "id" in request.GET: >+ request.server.stash.put(request.GET["id"], data) >+ >+ if type == 'image': >+ return subresource.get_template("image.css.template") % {"id": request.GET["id"]} >+ >+ elif type == 'font': >+ return subresource.get_template("font.css.template") % {"id": request.GET["id"]} >+ >+ elif type == 'svg': >+ return subresource.get_template("svg.css.template") % { >+ "id": request.GET["id"], >+ "property": request.GET["property"]} >+ >+def generate_import_rule(request, server_data): >+ return "@import url('%(url)s');" % { >+ "url": subresource.create_url(request, swap_origin=True, >+ query_parameter_to_remove="import-rule") >+ } >+ >+def generate_report_headers_payload(request, server_data): >+ stashed_data = request.server.stash.take(request.GET["id"]) >+ return stashed_data >+ >+def main(request, response): >+ payload_generator = lambda data: generate_payload(request, data) >+ content_type = "text/css" >+ referrer_policy = "unsafe-url" >+ if "import-rule" in request.GET: >+ payload_generator = lambda data: generate_import_rule(request, data) >+ >+ if "report-headers" in request.GET: >+ payload_generator = lambda data: generate_report_headers_payload(request, data) >+ content_type = 'application/json' >+ >+ if "referrer-policy" in request.GET: >+ referrer_policy = request.GET["referrer-policy"] >+ >+ subresource.respond( >+ request, >+ response, >+ payload_generator = payload_generator, >+ content_type = content_type, >+ maybe_additional_headers = { "Referrer-Policy": referrer_policy }) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/subresource.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/subresource.py >new file mode 100644 >index 00000000000..f11f3250568 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/subresource.py >@@ -0,0 +1,164 @@ >+import os, json, urllib, urlparse >+ >+def get_template(template_basename): >+ script_directory = os.path.dirname(os.path.abspath(__file__)) >+ template_directory = os.path.abspath(os.path.join(script_directory, >+ "template")) >+ template_filename = os.path.join(template_directory, template_basename); >+ >+ with open(template_filename, "r") as f: >+ return f.read() >+ >+ >+def redirect(url, response): >+ response.add_required_headers = False >+ response.writer.write_status(301) >+ response.writer.write_header("access-control-allow-origin", "*") >+ response.writer.write_header("location", url) >+ response.writer.end_headers() >+ response.writer.write("") >+ >+ >+# TODO(kristijanburnik): subdomain_prefix is a hardcoded value aligned with >+# referrer-policy-test-case.js. The prefix should be configured in one place. >+def __get_swapped_origin_netloc(netloc, subdomain_prefix = "www1."): >+ if netloc.startswith(subdomain_prefix): >+ return netloc[len(subdomain_prefix):] >+ else: >+ return subdomain_prefix + netloc >+ >+ >+# Creates a URL (typically a redirect target URL) that is the same as the >+# current request URL `request.url`, except for: >+# - When `swap_scheme` or `swap_origin` is True, its scheme/origin is changed >+# to the other one. (http <-> https, ws <-> wss, etc.) >+# - `query_parameter_to_remove` parameter is removed from query part. >+# Its default is "redirection" to avoid redirect loops. >+def create_url(request, swap_scheme = False, swap_origin = False, >+ query_parameter_to_remove = "redirection"): >+ parsed = urlparse.urlsplit(request.url) >+ destination_netloc = parsed.netloc >+ >+ scheme = parsed.scheme >+ if swap_scheme: >+ scheme = "http" if parsed.scheme == "https" else "https" >+ hostname = parsed.netloc.split(':')[0] >+ port = request.server.config["ports"][scheme][0] >+ destination_netloc = ":".join([hostname, str(port)]) >+ >+ if swap_origin: >+ destination_netloc = __get_swapped_origin_netloc(destination_netloc) >+ >+ parsed_query = urlparse.parse_qsl(parsed.query, keep_blank_values=True) >+ parsed_query = filter(lambda x: x[0] != query_parameter_to_remove, >+ parsed_query) >+ >+ destination_url = urlparse.urlunsplit(urlparse.SplitResult( >+ scheme = scheme, >+ netloc = destination_netloc, >+ path = parsed.path, >+ query = urllib.urlencode(parsed_query), >+ fragment = None)) >+ >+ return destination_url >+ >+ >+def preprocess_redirection(request, response): >+ if "redirection" not in request.GET: >+ return False >+ >+ redirection = request.GET["redirection"] >+ >+ if redirection == "no-redirect": >+ return False >+ elif redirection == "keep-scheme-redirect": >+ redirect_url = create_url(request, swap_scheme=False) >+ elif redirection == "swap-scheme-redirect": >+ redirect_url = create_url(request, swap_scheme=True) >+ elif redirection == "keep-origin-redirect": >+ redirect_url = create_url(request, swap_origin=False) >+ elif redirection == "swap-origin-redirect": >+ redirect_url = create_url(request, swap_origin=True) >+ else: >+ raise ValueError("Invalid redirection type '%s'" % redirection) >+ >+ redirect(redirect_url, response) >+ return True >+ >+ >+def preprocess_stash_action(request, response): >+ if "action" not in request.GET: >+ return False >+ >+ action = request.GET["action"] >+ >+ key = request.GET["key"] >+ stash = request.server.stash >+ path = request.GET.get("path", request.url.split('?'))[0] >+ >+ if action == "put": >+ value = request.GET["value"] >+ stash.take(key=key, path=path) >+ stash.put(key=key, value=value, path=path) >+ response_data = json.dumps({"status": "success", "result": key}) >+ elif action == "purge": >+ value = stash.take(key=key, path=path) >+ return False >+ elif action == "take": >+ value = stash.take(key=key, path=path) >+ if value is None: >+ status = "allowed" >+ else: >+ status = "blocked" >+ response_data = json.dumps({"status": status, "result": value}) >+ else: >+ return False >+ >+ response.add_required_headers = False >+ response.writer.write_status(200) >+ response.writer.write_header("content-type", "text/javascript") >+ response.writer.write_header("cache-control", "no-cache; must-revalidate") >+ response.writer.end_headers() >+ response.writer.write(response_data) >+ return True >+ >+ >+def __noop(request, response): >+ return "" >+ >+ >+def respond(request, >+ response, >+ status_code = 200, >+ content_type = "text/html", >+ payload_generator = __noop, >+ cache_control = "no-cache; must-revalidate", >+ access_control_allow_origin = "*", >+ maybe_additional_headers = None): >+ if preprocess_redirection(request, response): >+ return >+ >+ if preprocess_stash_action(request, response): >+ return >+ >+ response.add_required_headers = False >+ response.writer.write_status(status_code) >+ >+ if access_control_allow_origin != None: >+ response.writer.write_header("access-control-allow-origin", >+ access_control_allow_origin) >+ response.writer.write_header("content-type", content_type) >+ response.writer.write_header("cache-control", cache_control) >+ >+ additional_headers = maybe_additional_headers or {} >+ for header, value in additional_headers.items(): >+ response.writer.write_header(header, value) >+ >+ response.writer.end_headers() >+ >+ server_data = {"headers": json.dumps(request.headers, indent = 4)} >+ >+ payload = payload_generator(server_data) >+ response.writer.write(payload) >+ >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/svg.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/svg.py >new file mode 100644 >index 00000000000..6353079bb89 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/svg.py >@@ -0,0 +1,36 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(request, server_data): >+ data = ('{"headers": %(headers)s}') % server_data >+ if "id" in request.GET: >+ with request.server.stash.lock: >+ request.server.stash.take(request.GET["id"]) >+ request.server.stash.put(request.GET["id"], data) >+ return "<svg xmlns='http://www.w3.org/2000/svg'></svg>"; >+ >+def generate_payload_embedded(request, server_data): >+ return subresource.get_template("svg.embedded.template") % { >+ "id": request.GET["id"], >+ "property": request.GET["property"]}; >+ >+def generate_report_headers_payload(request, server_data): >+ stashed_data = request.server.stash.take(request.GET["id"]) >+ return stashed_data >+ >+def main(request, response): >+ handler = lambda data: generate_payload(request, data) >+ content_type = 'image/svg+xml' >+ >+ if "embedded-svg" in request.GET: >+ handler = lambda data: generate_payload_embedded(request, data) >+ >+ if "report-headers" in request.GET: >+ handler = lambda data: generate_report_headers_payload(request, data) >+ content_type = 'application/json' >+ >+ subresource.respond(request, >+ response, >+ payload_generator = handler, >+ content_type = content_type) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/document.html.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/document.html.template >new file mode 100644 >index 00000000000..141711c1483 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/document.html.template >@@ -0,0 +1,16 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>This page reports back it's request details to the parent frame</title> >+ </head> >+ <body> >+ <script> >+ var result = { >+ location: document.location.toString(), >+ referrer: document.referrer.length > 0 ? document.referrer : undefined, >+ headers: %(headers)s >+ }; >+ parent.postMessage(result, "*"); >+ </script> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/font.css.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/font.css.template >new file mode 100644 >index 00000000000..9d1e9c421cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/font.css.template >@@ -0,0 +1,9 @@ >+@font-face { >+ font-family: 'wpt'; >+ font-style: normal; >+ font-weight: normal; >+ src: url(/common/security-features/subresource/font.py?id=%(id)s) format('truetype'); >+} >+body { >+ font-family: 'wpt'; >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/image.css.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/image.css.template >new file mode 100644 >index 00000000000..dfe41f1bf16 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/image.css.template >@@ -0,0 +1,3 @@ >+div.styled::before { >+ content:url(/common/security-features/subresource/image.py?id=%(id)s) >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/script.js.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/script.js.template >new file mode 100644 >index 00000000000..e2edf21819d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/script.js.template >@@ -0,0 +1,3 @@ >+postMessage({ >+ "headers": %(headers)s >+}, "*"); >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/shared-worker.js.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/shared-worker.js.template >new file mode 100644 >index 00000000000..c3f109e4a90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/shared-worker.js.template >@@ -0,0 +1,5 @@ >+onconnect = function(e) { >+ e.ports[0].postMessage({ >+ "headers": %(headers)s >+ }); >+}; >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/svg.css.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/svg.css.template >new file mode 100644 >index 00000000000..c2e509cc3b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/svg.css.template >@@ -0,0 +1,3 @@ >+path { >+ %(property)s: url(/common/security-features/subresource/svg.py?id=%(id)s#invalidFragment); >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/svg.embedded.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/svg.embedded.template >new file mode 100644 >index 00000000000..5986c4800a7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/svg.embedded.template >@@ -0,0 +1,5 @@ >+<?xml version='1.0' standalone='no'?> >+<?xml-stylesheet href='stylesheet.py?id=%(id)s&type=svg&property=%(property)s' type='text/css'?> >+<svg xmlns='http://www.w3.org/2000/svg'> >+ <path d='M 50,5 95,100 5,100 z' /> >+</svg> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/w3c-import.log >new file mode 100644 >index 00000000000..3681644f458 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/w3c-import.log >@@ -0,0 +1,24 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/document.html.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/font.css.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/image.css.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/script.js.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/shared-worker.js.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/svg.css.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/svg.embedded.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/worker.js.template >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/worker.js.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/worker.js.template >new file mode 100644 >index 00000000000..817dd8c87ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/template/worker.js.template >@@ -0,0 +1,3 @@ >+postMessage({ >+ "headers": %(headers)s >+}); >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/video.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/video.py >new file mode 100644 >index 00000000000..c8d8548ac3e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/video.py >@@ -0,0 +1,17 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(request, server_data): >+ file = os.path.join(request.doc_root, "media", "movie_5.ogv") >+ return open(file, "rb").read() >+ >+ >+def main(request, response): >+ handler = lambda data: generate_payload(request, data) >+ subresource.respond(request, >+ response, >+ payload_generator = handler, >+ access_control_allow_origin = "*", >+ content_type = "video/ogg") >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/w3c-import.log >new file mode 100644 >index 00000000000..17ac3c7cbd3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/w3c-import.log >@@ -0,0 +1,30 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/__init__.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/audio.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/document.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/empty.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/font.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/image.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/script.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/shared-worker.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/stylesheet.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/subresource.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/svg.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/video.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/worker.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/xhr.py >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/worker.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/worker.py >new file mode 100644 >index 00000000000..85c1f67a967 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/worker.py >@@ -0,0 +1,12 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(server_data): >+ return subresource.get_template("worker.js.template") % server_data >+ >+def main(request, response): >+ subresource.respond(request, >+ response, >+ payload_generator = generate_payload, >+ content_type = "application/javascript") >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/xhr.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/xhr.py >new file mode 100644 >index 00000000000..82a4cb0b657 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/subresource/xhr.py >@@ -0,0 +1,15 @@ >+import os, sys >+sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) >+import subresource >+ >+def generate_payload(server_data): >+ data = ('{"headers": %(headers)s}') % server_data >+ return data >+ >+def main(request, response): >+ subresource.respond(request, >+ response, >+ payload_generator = generate_payload, >+ access_control_allow_origin = "*", >+ content_type = "application/json") >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/generate.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/generate.py >new file mode 100644 >index 00000000000..50c3a2c250c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/generate.py >@@ -0,0 +1,189 @@ >+from __future__ import print_function >+ >+import copy >+import os, sys, json >+import spec_validator >+import argparse >+import util >+ >+ >+def expand_pattern(expansion_pattern, test_expansion_schema): >+ expansion = {} >+ for artifact_key in expansion_pattern: >+ artifact_value = expansion_pattern[artifact_key] >+ if artifact_value == '*': >+ expansion[artifact_key] = test_expansion_schema[artifact_key] >+ elif isinstance(artifact_value, list): >+ expansion[artifact_key] = artifact_value >+ elif isinstance(artifact_value, dict): >+ # Flattened expansion. >+ expansion[artifact_key] = [] >+ values_dict = expand_pattern(artifact_value, >+ test_expansion_schema[artifact_key]) >+ for sub_key in values_dict.keys(): >+ expansion[artifact_key] += values_dict[sub_key] >+ else: >+ expansion[artifact_key] = [artifact_value] >+ >+ return expansion >+ >+ >+def permute_expansion(expansion, artifact_order, selection = {}, artifact_index = 0): >+ assert isinstance(artifact_order, list), "artifact_order should be a list" >+ >+ if artifact_index >= len(artifact_order): >+ yield selection >+ return >+ >+ artifact_key = artifact_order[artifact_index] >+ >+ for artifact_value in expansion[artifact_key]: >+ selection[artifact_key] = artifact_value >+ for next_selection in permute_expansion(expansion, >+ artifact_order, >+ selection, >+ artifact_index + 1): >+ yield next_selection >+ >+ >+def generate_selection(config, selection, spec, test_html_template_basename): >+ # TODO: Refactor out this referrer-policy-specific part. >+ if 'referrer_policy' in spec: >+ # Oddball: it can be None, so in JS it's null. >+ selection['referrer_policy'] = spec['referrer_policy'] >+ >+ test_parameters = json.dumps(selection, indent=2, separators=(',', ':')) >+ # Adjust the template for the test invoking JS. Indent it to look nice. >+ indent = "\n" + " " * 8 >+ test_parameters = test_parameters.replace("\n", indent) >+ >+ selection['test_js'] = ''' >+ %s( >+ %s, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ ''' % (config.test_case_name, test_parameters) >+ >+ selection['spec_name'] = spec['name'] >+ selection['test_page_title'] = config.test_page_title_template % spec['title'] >+ selection['spec_description'] = spec['description'] >+ selection['spec_specification_url'] = spec['specification_url'] >+ selection['helper_js'] = config.helper_js >+ selection['sanity_checker_js'] = config.sanity_checker_js >+ selection['spec_json_js'] = config.spec_json_js >+ >+ test_filename = os.path.join(config.spec_directory, config.test_file_path_pattern % selection) >+ test_headers_filename = test_filename + ".headers" >+ test_directory = os.path.dirname(test_filename) >+ >+ test_html_template = util.get_template(test_html_template_basename) >+ disclaimer_template = util.get_template('disclaimer.template') >+ >+ html_template_filename = os.path.join(util.template_directory, >+ test_html_template_basename) >+ generated_disclaimer = disclaimer_template \ >+ % {'generating_script_filename': os.path.relpath(__file__, >+ util.test_root_directory), >+ 'html_template_filename': os.path.relpath(html_template_filename, >+ util.test_root_directory)} >+ >+ # Adjust the template for the test invoking JS. Indent it to look nice. >+ selection['generated_disclaimer'] = generated_disclaimer.rstrip() >+ selection['test_description'] = config.test_description_template % selection >+ selection['test_description'] = \ >+ selection['test_description'].rstrip().replace("\n", "\n" + " " * 33) >+ >+ # Directory for the test files. >+ try: >+ os.makedirs(test_directory) >+ except: >+ pass >+ >+ delivery = config.handleDelivery(selection, spec) >+ >+ if len(delivery['headers']) > 0: >+ with open(test_headers_filename, "w") as f: >+ for header in delivery['headers']: >+ f.write(header) >+ f.write('\n') >+ >+ selection['meta_delivery_method'] = delivery['meta'] >+ # Obey the lint and pretty format. >+ if len(selection['meta_delivery_method']) > 0: >+ selection['meta_delivery_method'] = "\n " + \ >+ selection['meta_delivery_method'] >+ >+ # Write out the generated HTML file. >+ util.write_file(test_filename, test_html_template % selection) >+ >+ >+def generate_test_source_files(config, spec_json, target): >+ test_expansion_schema = spec_json['test_expansion_schema'] >+ specification = spec_json['specification'] >+ >+ spec_json_js_template = util.get_template('spec_json.js.template') >+ generated_spec_json_filename = os.path.join(config.spec_directory, "spec_json.js") >+ util.write_file(generated_spec_json_filename, >+ spec_json_js_template % {'spec_json': json.dumps(spec_json)}) >+ >+ # Choose a debug/release template depending on the target. >+ html_template = "test.%s.html.template" % target >+ >+ artifact_order = test_expansion_schema.keys() + ['name'] >+ artifact_order.remove('expansion') >+ >+ # Create list of excluded tests. >+ exclusion_dict = {} >+ for excluded_pattern in spec_json['excluded_tests']: >+ excluded_expansion = \ >+ expand_pattern(excluded_pattern, test_expansion_schema) >+ for excluded_selection in permute_expansion(excluded_expansion, >+ artifact_order): >+ excluded_selection_path = config.selection_pattern % excluded_selection >+ exclusion_dict[excluded_selection_path] = True >+ >+ for spec in specification: >+ # Used to make entries with expansion="override" override preceding >+ # entries with the same |selection_path|. >+ output_dict = {} >+ >+ for expansion_pattern in spec['test_expansion']: >+ expansion = expand_pattern(expansion_pattern, test_expansion_schema) >+ for selection in permute_expansion(expansion, artifact_order): >+ selection_path = config.selection_pattern % selection >+ if not selection_path in exclusion_dict: >+ if selection_path in output_dict: >+ if expansion_pattern['expansion'] != 'override': >+ print("Error: %s's expansion is default but overrides %s" % (selection['name'], output_dict[selection_path]['name'])) >+ sys.exit(1) >+ output_dict[selection_path] = copy.deepcopy(selection) >+ else: >+ print('Excluding selection:', selection_path) >+ >+ for selection_path in output_dict: >+ selection = output_dict[selection_path] >+ generate_selection(config, >+ selection, >+ spec, >+ html_template) >+ >+ >+def main(config): >+ parser = argparse.ArgumentParser(description='Test suite generator utility') >+ parser.add_argument('-t', '--target', type = str, >+ choices = ("release", "debug"), default = "release", >+ help = 'Sets the appropriate template for generating tests') >+ parser.add_argument('-s', '--spec', type = str, default = None, >+ help = 'Specify a file used for describing and generating the tests') >+ # TODO(kristijanburnik): Add option for the spec_json file. >+ args = parser.parse_args() >+ >+ if args.spec: >+ config.spec_directory = args.spec >+ >+ spec_filename = os.path.join(config.spec_directory, "spec.src.json") >+ spec_json = util.load_spec_json(spec_filename) >+ spec_validator.assert_valid_spec_json(spec_json) >+ >+ generate_test_source_files(config, spec_json, args.target) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/disclaimer.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/disclaimer.template >new file mode 100644 >index 00000000000..66c43ed6f21 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/disclaimer.template >@@ -0,0 +1 @@ >+<!-- DO NOT EDIT! Generated by %(generating_script_filename)s using %(html_template_filename)s. --> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/spec_json.js.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/spec_json.js.template >new file mode 100644 >index 00000000000..e4cbd034259 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/spec_json.js.template >@@ -0,0 +1 @@ >+var SPEC_JSON = %(spec_json)s; >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/test.debug.html.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/test.debug.html.template >new file mode 100644 >index 00000000000..7d4a9f12664 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/test.debug.html.template >@@ -0,0 +1,24 @@ >+<!DOCTYPE html> >+%(generated_disclaimer)s >+<html> >+ <head> >+ <title>%(test_page_title)s</title> >+ <meta charset='utf-8'> >+ <meta name="description" content="%(spec_description)s"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="%(spec_specification_url)s"> >+ <meta name="assert" content="%(test_description)s">%(meta_delivery_method)s >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <!-- The original specification JSON for validating the scenario. --> >+ <script src="%(spec_json_js)s"></script> >+ <!-- Internal checking of the tests --> >+ <script src="%(sanity_checker_js)s"></script> >+ <script src="%(helper_js)s"></script> >+ </head> >+ <body> >+ <script>%(test_js)s</script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/test.release.html.template b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/test.release.html.template >new file mode 100644 >index 00000000000..091f59be90d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/test.release.html.template >@@ -0,0 +1,20 @@ >+<!DOCTYPE html> >+%(generated_disclaimer)s >+<html> >+ <head> >+ <title>%(test_page_title)s</title> >+ <meta charset='utf-8'> >+ <meta name="description" content="%(spec_description)s"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="%(spec_specification_url)s"> >+ <meta name="assert" content="%(test_description)s">%(meta_delivery_method)s >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="%(helper_js)s"></script> >+ </head> >+ <body> >+ <script>%(test_js)s</script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/w3c-import.log >new file mode 100644 >index 00000000000..821aa63f18b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/w3c-import.log >@@ -0,0 +1,20 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/disclaimer.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/spec_json.js.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/test.debug.html.template >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/template/test.release.html.template >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/util.py b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/util.py >new file mode 100644 >index 00000000000..77b89769ca2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/util.py >@@ -0,0 +1,41 @@ >+from __future__ import print_function >+ >+import os, sys, json, re >+ >+script_directory = os.path.dirname(os.path.abspath(__file__)) >+template_directory = os.path.abspath(os.path.join(script_directory, >+ 'template')) >+test_root_directory = os.path.abspath(os.path.join(script_directory, >+ '..', '..', '..')) >+ >+ >+def get_template(basename): >+ with open(os.path.join(template_directory, basename), "r") as f: >+ return f.read() >+ >+ >+def write_file(filename, contents): >+ with open(filename, "w") as f: >+ f.write(contents) >+ >+ >+def read_nth_line(fp, line_number): >+ fp.seek(0) >+ for i, line in enumerate(fp): >+ if (i + 1) == line_number: >+ return line >+ >+ >+def load_spec_json(path_to_spec): >+ re_error_location = re.compile('line ([0-9]+) column ([0-9]+)') >+ with open(path_to_spec, "r") as f: >+ try: >+ return json.load(f) >+ except ValueError as ex: >+ print(ex.message) >+ match = re_error_location.search(ex.message) >+ if match: >+ line_number, column = int(match.group(1)), int(match.group(2)) >+ print(read_nth_line(f, line_number).rstrip()) >+ print(" " * (column - 1) + "^") >+ sys.exit(1) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/w3c-import.log >new file mode 100644 >index 00000000000..f334be1f88e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/generate.py >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/tools/util.py >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/security-features/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/w3c-import.log >new file mode 100644 >index 00000000000..864820f5d90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/security-features/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/common/security-features/README.md >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/sleep.py b/LayoutTests/imported/w3c/web-platform-tests/common/sleep.py >new file mode 100644 >index 00000000000..2e803b1b262 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/sleep.py >@@ -0,0 +1,13 @@ >+import time >+import timeit >+ >+# sleep can be lower than requested value in some platforms: https://bugs.python.org/issue31539 >+# We add padding here to compensate for that. >+sleep_padding = 15.0 >+ >+def sleep_at_least(sleep_in_ms): >+ sleep_until = timeit.default_timer() + (sleep_in_ms / 1E3) >+ time.sleep((sleep_in_ms + sleep_padding) / 1E3) >+ # Check if the padding was sufficient; if not, sleep again. >+ while timeit.default_timer() < sleep_until: >+ time.sleep(sleep_padding / 1E3) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/slow.py b/LayoutTests/imported/w3c/web-platform-tests/common/slow.py >new file mode 100644 >index 00000000000..f3b1c7e2ea6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/slow.py >@@ -0,0 +1,5 @@ >+import time >+ >+def main(request, response): >+ time.sleep(2) >+ return 200, [], '' >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/common/w3c-import.log >index 606a521a165..365240669a4 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/w3c-import.log >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/w3c-import.log >@@ -1,7 +1,7 @@ > The tests in this directory were imported from the W3C repository. > Do NOT modify these tests directly in WebKit. > Instead, create a pull request on the WPT github: >- https://github.com/w3c/web-platform-tests >+ https://github.com/web-platform-tests/wpt > > Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport > >@@ -14,7 +14,7 @@ Property values requiring vendor prefixes: > None > ------------------------------------------------------------------------ > List of files: >-/LayoutTests/imported/w3c/web-platform-tests/common/OWNERS >+/LayoutTests/imported/w3c/web-platform-tests/common/META.yml > /LayoutTests/imported/w3c/web-platform-tests/common/PrefixedLocalStorage.js > /LayoutTests/imported/w3c/web-platform-tests/common/PrefixedLocalStorage.js.headers > /LayoutTests/imported/w3c/web-platform-tests/common/PrefixedPostMessage.js >@@ -36,11 +36,11 @@ List of files: > /LayoutTests/imported/w3c/web-platform-tests/common/domain-setter.sub.html > /LayoutTests/imported/w3c/web-platform-tests/common/dummy.xhtml > /LayoutTests/imported/w3c/web-platform-tests/common/dummy.xml >+/LayoutTests/imported/w3c/web-platform-tests/common/echo.py > /LayoutTests/imported/w3c/web-platform-tests/common/entities.json > /LayoutTests/imported/w3c/web-platform-tests/common/form-submission.py > /LayoutTests/imported/w3c/web-platform-tests/common/get-host-info.sub.js > /LayoutTests/imported/w3c/web-platform-tests/common/get-host-info.sub.js.headers >-/LayoutTests/imported/w3c/web-platform-tests/common/large.py > /LayoutTests/imported/w3c/web-platform-tests/common/media.js > /LayoutTests/imported/w3c/web-platform-tests/common/media.js.headers > /LayoutTests/imported/w3c/web-platform-tests/common/namespaces.js >@@ -52,8 +52,11 @@ List of files: > /LayoutTests/imported/w3c/web-platform-tests/common/redirect.py > /LayoutTests/imported/w3c/web-platform-tests/common/reftest-wait.js > /LayoutTests/imported/w3c/web-platform-tests/common/reftest-wait.js.headers >+/LayoutTests/imported/w3c/web-platform-tests/common/sleep.py >+/LayoutTests/imported/w3c/web-platform-tests/common/slow.py > /LayoutTests/imported/w3c/web-platform-tests/common/stringifiers.js > /LayoutTests/imported/w3c/web-platform-tests/common/stringifiers.js.headers >+/LayoutTests/imported/w3c/web-platform-tests/common/subset-tests-by-key.js > /LayoutTests/imported/w3c/web-platform-tests/common/subset-tests.js > /LayoutTests/imported/w3c/web-platform-tests/common/test-setting-immutable-prototype.js > /LayoutTests/imported/w3c/web-platform-tests/common/test-setting-immutable-prototype.js.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/common/worklet-reftest.js b/LayoutTests/imported/w3c/web-platform-tests/common/worklet-reftest.js >index abdda5b05e7..d92c76cabf3 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/common/worklet-reftest.js >+++ b/LayoutTests/imported/w3c/web-platform-tests/common/worklet-reftest.js >@@ -14,6 +14,15 @@ function importWorklet(worklet, code) { > return worklet.addModule(url); > } > >+async function animationFrames(frames) { >+ for (let i = 0; i < frames; i++) >+ await new Promise(requestAnimationFrame); >+} >+ >+async function workletPainted() { >+ await animationFrames(2); >+} >+ > // To make sure that we take the snapshot at the right time, we do double > // requestAnimationFrame. In the second frame, we take a screenshot, that makes > // sure that we already have a full frame. >@@ -24,10 +33,6 @@ async function importWorkletAndTerminateTestAfterAsyncPaint(worklet, code) { > } > > await importWorklet(worklet, code); >- >- requestAnimationFrame(function() { >- requestAnimationFrame(function() { >- takeScreenshot(); >- }); >- }); >+ await workletPainted(); >+ takeScreenshot(); > } >diff --git a/LayoutTests/imported/w3c/web-platform-tests/custom-elements/custom-element-registry/per-global-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/custom-elements/custom-element-registry/per-global-expected.txt >index 50eeb9cbbf8..f1b0b1de01a 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/custom-elements/custom-element-registry/per-global-expected.txt >+++ b/LayoutTests/imported/w3c/web-platform-tests/custom-elements/custom-element-registry/per-global-expected.txt >@@ -1,8 +1,6 @@ > > >-Harness Error (TIMEOUT), message = null >- > PASS Discarding the browsing context must not change window.customElements > FAIL Navigating from the initial about:blank must not replace window.customElements assert_equals: expected object "[object CustomElementRegistry]" but got object "[object CustomElementRegistry]" >-FAIL document.open() must replace window.customElements assert_not_equals: got disallowed value object "[object CustomElementRegistry]" >+PASS document.open() must replace window.customElements > >diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/named-access-on-the-window-object/navigated-named-objects.window-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/named-access-on-the-window-object/navigated-named-objects.window-expected.txt >index e2f60a07f27..55088b1397e 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/named-access-on-the-window-object/navigated-named-objects.window-expected.txt >+++ b/LayoutTests/imported/w3c/web-platform-tests/html/browsers/the-window-object/named-access-on-the-window-object/navigated-named-objects.window-expected.txt >@@ -3,12 +3,12 @@ PASS Window's associated Document object is used for finding named objects (<div > PASS Window's associated Document object is used for finding named objects (<object> via srcdoc <iframe>) > PASS Window's associated Document object is used for finding named objects (<iframe> via srcdoc <iframe>) > PASS Window's associated Document object is used for finding named objects (<object> with browsing ccontext via srcdoc <iframe)> >-FAIL Window's associated Document object is used for finding named objects (<div> via same-origin <iframe>) f is not a function. (In 'f()', 'f' is undefined) >-FAIL Window's associated Document object is used for finding named objects (<object> via same-origin <iframe>) f is not a function. (In 'f()', 'f' is undefined) >-FAIL Window's associated Document object is used for finding named objects (<iframe> via same-origin <iframe>) f is not a function. (In 'f()', 'f' is undefined) >-FAIL Window's associated Document object is used for finding named objects (<object> with browsing ccontext via same-origin <iframe)> f is not a function. (In 'f()', 'f' is undefined) >-FAIL Window's associated Document object is used for finding named objects (<div> via cross-site <iframe>) f is not a function. (In 'f()', 'f' is undefined) >-FAIL Window's associated Document object is used for finding named objects (<object> via cross-site <iframe>) f is not a function. (In 'f()', 'f' is undefined) >-FAIL Window's associated Document object is used for finding named objects (<iframe> via cross-site <iframe>) f is not a function. (In 'f()', 'f' is undefined) >-FAIL Window's associated Document object is used for finding named objects (<object> with browsing ccontext via cross-site <iframe)> f is not a function. (In 'f()', 'f' is undefined) >+PASS Window's associated Document object is used for finding named objects (<div> via same-origin <iframe>) >+PASS Window's associated Document object is used for finding named objects (<object> via same-origin <iframe>) >+PASS Window's associated Document object is used for finding named objects (<iframe> via same-origin <iframe>) >+PASS Window's associated Document object is used for finding named objects (<object> with browsing ccontext via same-origin <iframe)> >+PASS Window's associated Document object is used for finding named objects (<div> via cross-site <iframe>) >+PASS Window's associated Document object is used for finding named objects (<object> via cross-site <iframe>) >+PASS Window's associated Document object is used for finding named objects (<iframe> via cross-site <iframe>) >+PASS Window's associated Document object is used for finding named objects (<object> with browsing ccontext via cross-site <iframe)> > >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/META.yml b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/META.yml >new file mode 100644 >index 00000000000..8ead043aad0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/META.yml >@@ -0,0 +1,3 @@ >+spec: https://w3c.github.io/webappsec-referrer-policy/ >+suggested_reviewers: >+ - domfarolino >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/README.md b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/README.md >new file mode 100644 >index 00000000000..ea158fe5394 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/README.md >@@ -0,0 +1,238 @@ >+# Referrer-Policy Web Platform Tests >+ >+The Referrer-Policy tests are designed for testing browser implementations and conformance to the [W3 Referrer-Policy Specification](http://w3c.github.io/webappsec/specs/referrer-policy/). >+ >+## Project structure >+ >+The project contains tools, templates and a seed (```spec.src.json```) for generating tests. The main assertion logic resides in JS files in the root of the ```./generic/``` directory. >+ >+This is the overview of the project structure: >+ >+``` >+. >+└── generic >+ ├── subresource - documents being served as sub-resources (python scripts) >+ ├── subresource-test - sanity checking tests for resource invocation >+ ├── template - the test files template used for generating the tests >+ └── tools - for generating and maintaining the test suite >+└── (genereated_tests_for_a_specification_1) >+└── (genereated_tests_for_a_specification_2) >+└── ... >+└── (genereated_tests_for_a_specification_N) >+``` >+ >+## The spec JSON >+ >+The ```spec.src.json``` defines all the test scenarios for the referrer policy. >+ >+Invoking ```./generic/tools/generate.py``` will parse the spec JSON and determine which tests to generate (or skip) while using templates. >+ >+ >+The spec can be validated by running ```./generic/tools/spec_validator.py```. This is specially important when you're making changes to ```spec.src.json```. Make sure it's a valid JSON (no comments or trailing commas). The validator should be informative and very specific on any issues. >+ >+For details about the spec JSON, see **Overview of the spec JSON** below. >+ >+ >+## Generating and running the tests >+ >+The repository already contains generated tests, so if you're making changes, >+see the **Removing all generated tests** section below, on how to remove them before you start generating tests which include your changes. >+ >+Start from the command line: >+ >+```bash >+ >+# Chdir into the tests directory. >+cd ~/web-platform-tests/referrer-policy >+ >+# Generate the test resources. >+./generic/tools/generate.py >+ >+# Add all generated tests to the repo. >+git add * && git commit -m "Add generated tests" >+ >+# Regenerate the manifest. >+../wpt manifest >+ >+``` >+ >+Navigate to [http://web-platform.test:8000/tools/runner/index.html](http://web-platform.test:8000/tools/runner/index.html). >+ >+Run tests under path: ```/referrer-policy```. >+ >+Click start. >+ >+ >+## Options for generating tests >+ >+The generator script ```./generic/tools/generate.py``` has two targets: ```release``` and ```debug```. >+ >+* Using **release** for the target will produce tests using a template for optimizing size and performance. The release template is intended for the official web-platform-tests and possibly other test suites. No sanity checking is done in release mode. Use this option whenever you're checking into web-platform-tests. >+ >+* When generating for ```debug```, the produced tests will contain more verbosity and sanity checks. Use this target to identify problems with the test suite when making changes locally. Make sure you don't check in tests generated with the debug target. >+ >+Note that **release** is the default target when invoking ```generate.py```. >+ >+ >+## Removing all generated tests >+ >+```bash >+# Chdir into the tests directory. >+cd ~/web-platform-tests/referrer-policy >+ >+# Remove all generated tests. >+./generic/tools/clean.py >+ >+# Remove all generated tests to the repo. >+git add * && git commit -m "Remove generated tests" >+ >+# Regenerate the manifest. >+../wpt manifest >+``` >+ >+**Important:** >+The ```./generic/tools/clean.py``` utility will only work if there is a valid ```spec.src.json``` and previously generated directories match the specification requirement names. So make sure you run ```clean.py``` before you alter the specification section of the spec JSON. >+ >+ >+## Updating the tests >+ >+The main test logic lives in ```./generic/referrer-policy-test-case.js``` with helper functions defined in ```./common/security-features/resources/common.js``` so you should probably start there. >+ >+For updating the test suite you will most likely do **a subset** of the following: >+ >+* Add a new sub-resource python script to ```./generic/subresource/```, >+ and update the reference to it in ```spec.src.json```. >+ >+* Add a sanity check test for a sub-resource to ```./generic/subresource-test/```. >+ >+* Implement new or update existing assertions in ```./generic/referrer-policy-test-case.js```. >+ >+* Exclude or add some tests by updating ```spec.src.json``` test expansions. >+ >+* Update the template files living in ```./generic/template/```. >+ >+* Implement a new delivery method via HTTP headers or as part of the test template in ```./generic/tools/generate.py``` >+ >+* Update the spec schema by editing ```spec.src.json``` while updating the >+ ```./generic/tools/spec_validator.py``` and ```./generic/tools/generate.py``` >+ and making sure both still work after the change (by running them). >+ >+* Regenerate the tests and MANIFEST.json >+ >+ >+## Updating the spec and regenerating >+ >+When updating the ```spec.src.json```, e.g. by adding a test expansion pattern to the ```excluded_tests``` section or when removing an expansion in the ```specification``` section, make sure to remove all previously generated files which would still get picked up by ```MANIFEST.json``` in the web-platform-tests root. As long as you don't change the specification requirements' names or remove them, you can easily regenerate the tests via command line: >+ >+```bash >+ >+# Chdir into the tests directory. >+cd ~/web-platform-tests/referrer-policy >+ >+# Regenerate the test resources. >+./generic/tools/regenerate >+ >+# Add all the tests to the repo. >+git add * && git commit -m "Update generated tests" >+ >+# Regenerate the manifest. >+../wpt manifest >+ >+ >+``` >+ >+ >+## Overview of the spec JSON >+ >+**Main sections:** >+ >+* **specification** >+ >+ Top level requirements with description fields and a ```test_expansion``` rule. >+ This is closely mimicking the [Referrer Policy specification](http://w3c.github.io/webappsec/specs/referrer-policy/) structure. >+ >+* **excluded_tests** >+ >+ List of ```test_expansion``` patterns expanding into selections which get skipped when generating the tests (aka. blacklisting/suppressing) >+ >+* **referrer_policy_schema** >+ >+ The schema to validate fields which define the ```referrer_policy``` elsewhere in the JSON. >+ A value for a referrer_policy can only be one specified in the referrer_policy_schema. >+ >+* **test_expansion_schema** >+ >+ The schema used to check if a ```test_expansion``` is valid. >+ Each test expansion can only contain fields defined by this schema. >+ >+### Test Expansion Patterns >+ >+Each field in a test expansion can be in one of the following formats: >+ >+* Single match: ```"value"``` >+ >+* Match any of: ```["value1", "value2", ...]``` >+ >+* Match all: ```"*"``` >+ >+#### Example: test expansion in a requirement specification >+ >+The following example shows how to restrict the expansion of ```referrer_url``` to ```origin``` and allow rest of the arrangement to expand (permute) to all possible values. The name field will be the prefix of a generated HTML file name for the test. >+ >+```json >+ { >+ "name": "origin-only", >+ "title": "Referrer Policy is set to 'origin-only'", >+ "description": "Check that all sub-resources in all cases get only the origin portion of the referrer URL.", >+ "specification_url": "https://w3c.github.io/webappsec/specs/referrer-policy/#referrer-policy-state-origin", >+ "referrer_policy": "origin", >+ "test_expansion": [ >+ { >+ "name": "generic", >+ "expansion": "default", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": "*", >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "origin" >+ } >+ ] >+ } >+``` >+ >+**NOTE:** An expansion is always constructive (inclusive), there isn't a negation operator for explicit exclusion. Be aware that using an empty list ```[]``` matches (expands into) exactly nothing. Tests which are to be excluded should be defined in the ```excluded_tests``` section instead. >+ >+A single test expansion pattern, be it a requirement or a suppressed pattern, gets expanded into a list of **selections** as follows: >+ >+* Expand each field's pattern (single, any of, or all) to list of allowed values (defined by the ```test_expansion_schema```) >+ >+* Permute - Recursively enumerate all **selections** across all fields >+ >+Be aware that if there is more than one pattern expanding into a same selection (which also shares the same ```name``` field), the pattern appearing later in the spec JSON will overwrite a previously generated selection. To make sure this is not undetected when generating, set the value of the ```expansion``` field to ```default``` for an expansion appearing earlier and ```override``` for the one appearing later. >+ >+A **selection** is a single **test instance** (scenario) with explicit values, for example: >+ >+```javascript >+var scenario = { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+}; >+``` >+ >+Essentially, this is what gets generated and defines a single test. The scenario is then evaluated by the ```ReferrerPolicyTestCase``` in JS. For the rest of the arranging part, see the ```./generic/template/``` directory and examine ```./generic/tools/generate.py``` to see how the values for the templates are produced. >+ >+ >+Taking the spec JSON, the generator follows this algorithm: >+ >+* Expand all ```excluded_tests``` to create a blacklist of selections >+ >+* For each specification requirement: Expand the ```test_expansion``` pattern into selections and check each against the blacklist, if not marked as suppresed, generate the test resources for the selection >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/README.md b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/README.md >new file mode 100644 >index 00000000000..150b0e65263 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/README.md >@@ -0,0 +1,14 @@ >+These tests exercise different ways to fetch a resource (image, font-face, svg >+references), generated via the sub-resource python script in >+```./generic/subresource/``` (for example, loading an image: >+```/common/security-features/subresource/image.py?id=<UUID>```) and later verify >+the headers used to fetch the resource. >+ >+Since there is no way to wait for a resource referenced from CSS to be loaded, >+all tests use ```step_timeout()``` to delay the verification step until >+after the resource (hopefully) was loaded. >+ >+Since there is also no way to retrieve headers (or other information) from >+resources loaded via CSS, we store the headers with the given ```UUID``` as key >+on the server, and retrieve them later via an XHR, for example: >+```/common/security-features/subresource/image.py?id=<UUID>&report-headers```. >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/external-import-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/external-import-stylesheet-expected.txt >new file mode 100644 >index 00000000000..3514e46728d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/external-import-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that child css are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+FAIL Child css from external stylesheet. promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'server_data.headers')" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/external-import-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/external-import-stylesheet.html >new file mode 100644 >index 00000000000..3ced0f49983 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/external-import-stylesheet.html >@@ -0,0 +1,47 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - Child css from external stylesheet</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that child css are loaded with the referrer and referrer policy >+ from the external stylesheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ let id = token(); >+ let url_prefix = location.protocol + "//www1." + location.hostname + ":" + location.port; >+ let css_url = url_prefix + >+ "/common/security-features/subresource/stylesheet.py?id=" + id + >+ "&import-rule" + "&referrer-policy=no-referrer"; >+ let check_url = url_prefix + "/common/security-features/subresource/stylesheet.py" + >+ "?id=" + id + "&report-headers"; >+ >+ return new Promise(resolve => { >+ let link = document.createElement("link"); >+ link.href = css_url; >+ link.rel = "stylesheet"; >+ link.onload = resolve; >+ document.head.appendChild(link); >+ }) >+ .then(() => timeoutPromise(css_test, 1000)) >+ .then(() => requestViaXhr(check_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_equals(message.referrer, undefined); >+ }); >+ }, "Child css from external stylesheet."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/internal-import-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/internal-import-stylesheet-expected.txt >new file mode 100644 >index 00000000000..b96dc4a008b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/internal-import-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that child css are loaded with the referrer and referrer policy from the internal stylesheet. >+ >+ >+FAIL Child css from internal stylesheet. promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'server_data.headers')" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/internal-import-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/internal-import-stylesheet.html >new file mode 100644 >index 00000000000..df835c45e10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/internal-import-stylesheet.html >@@ -0,0 +1,43 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - Child css from internal stylesheet</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="never"> >+ </head> >+ <body> >+ <p>Check that child css are loaded with the referrer and referrer policy >+ from the internal stylesheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ let id = token(); >+ let url_prefix = location.protocol + "//www1." + location.hostname + ":" + location.port; >+ let css_url = url_prefix + "/common/security-features/subresource/stylesheet.py?id=" + id + "&import-rule"; >+ let check_url = url_prefix + "/common/security-features/subresource/stylesheet.py" + >+ "?id=" + id + "&report-headers"; >+ >+ let style = document.createElement("style"); >+ style.type = 'text/css'; >+ style.appendChild(document.createTextNode("@import url('" + css_url + "');")); >+ document.head.appendChild(style); >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(check_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, css_url); >+ }); >+ }, "Child css from internal stylesheet."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/processing-instruction-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/processing-instruction-expected.txt >new file mode 100644 >index 00000000000..7213f4c827e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/processing-instruction-expected.txt >@@ -0,0 +1,5 @@ >+Check that child css are loaded with the referrer and referrer policy the external stylesheet(referenced from a ProcessingInstruction). >+ >+ >+FAIL Child css via a ProcessingInstruction. promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'server_data.headers')" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/processing-instruction.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/processing-instruction.html >new file mode 100644 >index 00000000000..1a0d9ebdda2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/processing-instruction.html >@@ -0,0 +1,45 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - child css via a ProcessingInstruction</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that child css are loaded with the referrer and referrer policy the >+ external stylesheet(referenced from a ProcessingInstruction).</p> >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ let id = token(); >+ let url_prefix = location.protocol + "//www1." + location.hostname + ":" + >+ location.port + >+ "/common/security-features/subresource/stylesheet.py?id=" + >+ id; >+ let css_url = url_prefix + "&import-rule"; >+ let expected = url_prefix + "&import-rule"; >+ let check_url = url_prefix + "&report-headers"; >+ >+ let processingInstruction = >+ document.createProcessingInstruction( >+ "xml-stylesheet", "href=\"" +css_url + "\" type=\"text/css\""); >+ document.insertBefore(processingInstruction, document.firstChild); >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(check_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, expected); >+ }); >+ }, "Child css via a ProcessingInstruction."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/w3c-import.log >new file mode 100644 >index 00000000000..8868935e0e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/w3c-import.log >@@ -0,0 +1,19 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/external-import-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/internal-import-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/child-css/processing-instruction.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/css-test-helper.js b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/css-test-helper.js >new file mode 100644 >index 00000000000..dc97ccc063b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/css-test-helper.js >@@ -0,0 +1,55 @@ >+var svg_ns = "http://www.w3.org/2000/svg"; >+var url_prefix = location.protocol + "//" + location.hostname + ":" + >+ location.port + "/common/security-features/subresource/"; >+ >+var svg_test_properties = [ >+ 'fill', >+ 'stroke', >+ 'filter', >+ 'clip-path', >+ 'marker-start', >+ 'marker-mid', >+ 'marker-end', >+ 'mask', >+ 'mask-image', >+]; >+ >+// Parameters: >+// testProperties: An array of test properties. >+// testDescription: A test description >+// testFunction: A function call which sets up the expect result and runs >+// the actual test >+function runSvgTests(testProperties, testDescription, testFunction) { >+ for (const property of testProperties) { >+ let current = { >+ id: token(), >+ property: property, >+ }; >+ >+ promise_test(t => { >+ testFunction(current); >+ return timeoutPromise(t, 800) >+ .then(() => { >+ let check_url = url_prefix + "svg.py" + "?id=" + current.id + >+ "&report-headers"; >+ return requestViaFetch(check_url); >+ }) >+ .then(message => { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, current.expected); >+ }); >+ }, >+ testDescription + " " + property); >+ } >+} >+ >+function createSvg() { >+ let svg = document.createElementNS(svg_ns, 'svg'); >+ svg.setAttribute('width', '400'); >+ svg.setAttribute('height', '400'); >+ let path = document.createElementNS(svg_ns, 'path'); >+ path.setAttribute('d', 'M 50,5 95,100 5,100 z'); >+ svg.appendChild(path); >+ return svg; >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-import-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-import-stylesheet-expected.txt >new file mode 100644 >index 00000000000..6f57317cd0a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-import-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from imported stylesheets (loaded from external stylesheets) are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+FAIL Font from imported stylesheet (external). promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'server_data.headers')" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-import-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-import-stylesheet.html >new file mode 100644 >index 00000000000..db655fbb726 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-import-stylesheet.html >@@ -0,0 +1,52 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - Font from imported stylesheet (external)</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="never"> >+ </head> >+ <body> >+ <p>Check that resources from imported stylesheets (loaded from external >+ stylesheets) are loaded with the referrer and referrer policy from the >+ external stylesheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ let id = token(); >+ let css_url = location.protocol + "//www1." + location.hostname + ":" + >+ location.port + >+ "/common/security-features/subresource/stylesheet.py?id=" + id + >+ "&import-rule" + "&type=font"; >+ let url_prefix = location.protocol + "//" + location.hostname + ":" + location.port; >+ let css_referrer = url_prefix + >+ "/common/security-features/subresource/stylesheet.py?id=" + id + "&type=font"; >+ let font_url = url_prefix + "/common/security-features/subresource/font.py" + >+ "?id=" + id + "&report-headers" + "&type=font"; >+ >+ return new Promise(resolve => { >+ let link = document.createElement("link"); >+ link.href = css_url; >+ link.rel = "stylesheet"; >+ link.onload = resolve; >+ document.head.appendChild(link); >+ }) >+ .then(() => timeoutPromise(css_test, 1000)) >+ .then(() => requestViaXhr(font_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, css_referrer); >+ }); >+ }, "Font from imported stylesheet (external)."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-stylesheet-expected.txt >new file mode 100644 >index 00000000000..4469b89eaaf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from external stylesheets are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+FAIL Font from external stylesheet. assert_equals: expected (string) "http://127.0.0.1:8800/common/security-features/subresource/stylesheet.py?id=0cfaf0c4-3f46-4939-a15f-3aa98cbdba75&type=font" but got (undefined) undefined >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-stylesheet.html >new file mode 100644 >index 00000000000..cc99b1f3ddc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-stylesheet.html >@@ -0,0 +1,46 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - Font from external stylesheet</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="never"> >+ </head> >+ <body> >+ <p>Check that resources from external stylesheets are loaded with >+ the referrer and referrer policy from the external stylesheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ let id = token(); >+ let url_prefix = location.protocol + "//www1." + location.hostname + ":" + location.port; >+ let css_url = url_prefix + "/common/security-features/subresource/stylesheet.py?id=" + id + "&type=font"; >+ let font_url = url_prefix + "/common/security-features/subresource/font.py" + >+ "?id=" + id + "&report-headers"; >+ >+ return new Promise(resolve => { >+ let link = document.createElement("link"); >+ link.href = css_url; >+ link.rel = "stylesheet"; >+ link.onload = resolve; >+ document.head.appendChild(link); >+ }) >+ .then(() => timeoutPromise(css_test, 1000)) >+ .then(() => requestViaXhr(font_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, css_url); >+ }); >+ }, "Font from external stylesheet."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-import-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-import-stylesheet-expected.txt >new file mode 100644 >index 00000000000..c53e1bd4638 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-import-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from stylesheets (imported from internal stylesheets) are loaded with the referrer and referrer policy from from the imported style sheet. >+ >+ >+FAIL Font from imported stylesheet (internal). assert_equals: expected "http://127.0.0.1:8800/common/security-features/subresource/stylesheet.py?id=a0d1a15b-ee5b-492d-b4ba-acceda1b7517&type=font" but got "http://localhost:8800/" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-import-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-import-stylesheet.html >new file mode 100644 >index 00000000000..969db95179e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-import-stylesheet.html >@@ -0,0 +1,43 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - Font from imported stylesheet (internal)</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from stylesheets (imported from internal >+ stylesheets) are loaded with the referrer and referrer policy from from the >+ imported style sheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ let id = token(); >+ let url_prefix = location.protocol + "//www1." + location.hostname + ":" + >+ location.port + "/common/security-features/subresource/"; >+ let css_url = url_prefix + "stylesheet.py?id=" + id + "&type=font"; >+ let font_url = url_prefix + "font.py?report-headers&id=" + id; >+ >+ let style = document.createElement("style"); >+ style.textContent = "@import url('" + css_url + "');"; >+ document.head.appendChild(style); >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(font_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, css_url); >+ }); >+ }, "Font from imported stylesheet (internal)."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-stylesheet-expected.txt >new file mode 100644 >index 00000000000..682e5a0d28a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from internal stylesheets are loaded with the referrer and referrer policy from the document. >+ >+ >+PASS Font from internal stylesheet. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-stylesheet.html >new file mode 100644 >index 00000000000..40eb09357b9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-stylesheet.html >@@ -0,0 +1,43 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - Font from internal stylesheet</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from internal stylesheets are loaded with >+ the referrer and referrer policy from the document.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ let id = token(); >+ let css_url = location.protocol + "//www1." + location.hostname + ":" + >+ location.port + >+ "/common/security-features/subresource/font.py" + "?id=" + >+ id + "&type=font"; >+ let font_url = css_url + "&report-headers"; >+ >+ let style = document.createElement("style"); >+ style.textContent = "@font-face { font-family: 'wpt'; font-style: normal; font-weight: normal; src: url(" + css_url + "); format('truetype'); } body { font-family: 'wpt';}"; >+ document.head.appendChild(style); >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(font_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, location.origin + "/"); >+ }); >+ }, "Font from internal stylesheet."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/processing-instruction-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/processing-instruction-expected.txt >new file mode 100644 >index 00000000000..7cbe434ce15 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/processing-instruction-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from external stylesheets (referenced from a ProcessingInstruction) are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+FAIL Font from external stylesheet (from ProcessingInstruction). assert_equals: expected (string) "http://127.0.0.1:8800/common/security-features/subresource/stylesheet.py?id=c7cc998c-186d-4cf3-bfb4-052f1d1d6a2c&type=font" but got (undefined) undefined >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/processing-instruction.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/processing-instruction.html >new file mode 100644 >index 00000000000..25b0ed13473 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/processing-instruction.html >@@ -0,0 +1,49 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - Font from external stylesheet inserted via a ProcessingInstruction</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="never"> >+ </head> >+ <body> >+ <p>Check that resources from external stylesheets (referenced from a >+ ProcessingInstruction) are loaded with the referrer and referrer policy >+ from the external stylesheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ let id = token(); >+ let url_prefix = location.protocol + "//www1." + location.hostname + ":" + location.port; >+ let css_url = url_prefix + >+ "/common/security-features/subresource/stylesheet.py?id=" + >+ id + "&type=font"; >+ let expected = url_prefix + >+ "/common/security-features/subresource/stylesheet.py?id=" + >+ id + "&type=font"; >+ let font_url = url_prefix + "/common/security-features/subresource/font.py" + >+ "?id=" + id + "&report-headers"; >+ >+ let processingInstruction = >+ document.createProcessingInstruction( >+ "xml-stylesheet", "href=\"" + css_url + "\" type=\"text/css\""); >+ document.insertBefore(processingInstruction, document.firstChild); >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(font_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, expected); >+ }); >+ }, "Font from external stylesheet (from ProcessingInstruction)."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/w3c-import.log >new file mode 100644 >index 00000000000..28b02cece07 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/w3c-import.log >@@ -0,0 +1,21 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-import-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/external-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-import-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/internal-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/font-face/processing-instruction.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-import-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-import-stylesheet-expected.txt >new file mode 100644 >index 00000000000..53e756d7e94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-import-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from imported stylesheets (loaded from external stylesheets) are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+FAIL Image from imported stylesheet (external). promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'server_data.headers')" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-import-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-import-stylesheet.html >new file mode 100644 >index 00000000000..370bc44b6c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-import-stylesheet.html >@@ -0,0 +1,52 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - image from imported stylesheet (external)</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="never"> >+ </head> >+ <body> >+ <p>Check that resources from imported stylesheets (loaded from external >+ stylesheets) are loaded with the referrer and referrer policy from the >+ external stylesheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ var id = token(); >+ var css_url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ "/common/security-features/subresource/stylesheet.py?id=" + id + >+ "&import-rule" + "&type=image"; >+ var url_prefix = location.protocol + "//" + location.hostname + ":" + location.port; >+ var css_referrer = url_prefix + >+ "/common/security-features/subresource/stylesheet.py?id=" + id + >+ "&type=image"; >+ var img_url = url_prefix + "/common/security-features/subresource/image.py" + >+ "?id=" + id + "&report-headers"; >+ >+ return new Promise(resolve => { >+ var link = document.createElement("link"); >+ link.href = css_url; >+ link.rel = "stylesheet"; >+ link.onload = resolve; >+ document.head.appendChild(link); >+ }) >+ .then(() => timeoutPromise(css_test, 1000)) >+ .then(() => requestViaXhr(img_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, css_referrer); >+ }); >+ }, "Image from imported stylesheet (external)."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-stylesheet-expected.txt >new file mode 100644 >index 00000000000..827729424cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from external stylesheets are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+FAIL Image from external stylesheet. assert_equals: expected (string) "http://127.0.0.1:8800/common/security-features/subresource/stylesheet.py?id=513401ea-6826-42d7-997e-a8a565a7718c" but got (undefined) undefined >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-stylesheet.html >new file mode 100644 >index 00000000000..eb1b019c988 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-stylesheet.html >@@ -0,0 +1,46 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - image from external stylesheet</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="never"> >+ </head> >+ <body> >+ <p>Check that resources from external stylesheets are loaded with >+ the referrer and referrer policy from the external stylesheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ var id = token(); >+ var url_prefix = location.protocol + "//www1." + location.hostname + ":" + location.port; >+ var css_url = url_prefix + "/common/security-features/subresource/stylesheet.py?id=" + id; >+ var img_url = url_prefix + "/common/security-features/subresource/image.py" + >+ "?id=" + id + "&report-headers"; >+ >+ return new Promise(resolve => { >+ var link = document.createElement("link"); >+ link.href = css_url; >+ link.rel = "stylesheet"; >+ link.onload = resolve; >+ document.head.appendChild(link); >+ }) >+ .then(() => timeoutPromise(css_test, 1000)) >+ .then(() => requestViaXhr(img_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, css_url); >+ }); >+ }, "Image from external stylesheet."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/inline-style-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/inline-style-expected.txt >new file mode 100644 >index 00000000000..5b1b68bf315 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/inline-style-expected.txt >@@ -0,0 +1,6 @@ >+Check that resources from inline styles are loaded with the referrer and referrer policy from the document. >+ >+ >+ >+PASS Image from inline styles. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/inline-style.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/inline-style.html >new file mode 100644 >index 00000000000..d6ff26e7bcc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/inline-style.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - image from inline style</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from inline styles are loaded with >+ the referrer and referrer policy from the document.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ var id = token(); >+ var css_url = location.protocol + "//www1." + location.hostname + ":" + location.port + "/common/security-features/subresource/image.py" + "?id=" + id; >+ var img_url = css_url + "&report-headers"; >+ >+ var div = document.querySelector("div.styled"); >+ div.style = "content:url(" + css_url + ")"; >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(img_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, location.origin + "/"); >+ }); >+ }, "Image from inline styles."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-import-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-import-stylesheet-expected.txt >new file mode 100644 >index 00000000000..2ff0531e912 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-import-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from stylesheets (imported from internal stylesheets) are loaded with the referrer and referrer policy from the document. >+ >+ >+FAIL Image from imported stylesheet (internal). assert_equals: expected "http://127.0.0.1:8800/common/security-features/subresource/stylesheet.py?id=5c9f19c1-739d-483e-a690-d37231c8b44c" but got "http://localhost:8800/" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-import-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-import-stylesheet.html >new file mode 100644 >index 00000000000..e96b25a9712 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-import-stylesheet.html >@@ -0,0 +1,43 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - image from imported stylesheet (internal)</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from stylesheets (imported from internal >+ stylesheets) are loaded with the referrer and referrer policy from the >+ document.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ var id = token(); >+ var url_prefix = location.protocol + "//www1." + location.hostname + ":" + location.port + "/common/security-features/subresource/"; >+ var css_url = url_prefix + "stylesheet.py?id=" + id; >+ var img_url = url_prefix + "image.py?report-headers&id=" + id; >+ >+ var style = document.createElement("style"); >+ style.type = 'text/css'; >+ style.appendChild(document.createTextNode("@import url('" + css_url + "');")); >+ document.head.appendChild(style); >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(img_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, css_url); >+ }); >+ }, "Image from imported stylesheet (internal)."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-stylesheet-expected.txt >new file mode 100644 >index 00000000000..69f7899a122 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-stylesheet-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from internal stylesheets are loaded with the referrer and referrer policy from the document. >+ >+ >+PASS Image from internal stylesheet. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-stylesheet.html >new file mode 100644 >index 00000000000..29a8517e117 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-stylesheet.html >@@ -0,0 +1,41 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - image from internal stylesheet</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from internal stylesheets are loaded with >+ the referrer and referrer policy from the document.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ var id = token(); >+ var css_url = location.protocol + "//www1." + location.hostname + ":" + location.port + "/common/security-features/subresource/image.py" + "?id=" + id; >+ var img_url = css_url + "&report-headers"; >+ >+ var style = document.createElement("style"); >+ style.type = 'text/css'; >+ style.appendChild(document.createTextNode("div.styled::before { content:url(" + css_url + ")}")); >+ document.head.appendChild(style); >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(img_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, location.origin + "/"); >+ }); >+ }, "Image from internal stylesheet."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/presentation-attribute-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/presentation-attribute-expected.txt >new file mode 100644 >index 00000000000..535397ec566 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/presentation-attribute-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from presentation attributes are loaded with the referrer and referrer policy from the document. >+ >+ >+PASS Image from presentation attributes. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/presentation-attribute.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/presentation-attribute.html >new file mode 100644 >index 00000000000..95d3b11a42a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/presentation-attribute.html >@@ -0,0 +1,36 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - image from presentation attribute</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from presentation attributes are loaded with >+ the referrer and referrer policy from the document.</p> >+ >+ <script> >+ promise_test(function(css_test) { >+ var id = token(); >+ var css_url = location.protocol + "//www1." + location.hostname + ":" + location.port + "/common/security-features/subresource/image.py" + "?id=" + id; >+ var img_url = css_url + "&report-headers"; >+ >+ document.body.background = css_url; >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(img_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, location.origin + "/"); >+ }); >+ }, "Image from presentation attributes."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/processing-instruction-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/processing-instruction-expected.txt >new file mode 100644 >index 00000000000..9114fbc134f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/processing-instruction-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources from external stylesheets (referenced from a ProcessingInstruction) are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+FAIL Image from external stylesheet (from ProcessingInstruction). assert_equals: expected (string) "http://127.0.0.1:8800/common/security-features/subresource/stylesheet.py?id=abcd8a36-2e12-4c9b-bb0d-b5f336dda4f3" but got (undefined) undefined >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/processing-instruction.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/processing-instruction.html >new file mode 100644 >index 00000000000..e52d9b65097 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/processing-instruction.html >@@ -0,0 +1,42 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - image from external stylesheet inserted via a ProcessingInstruction</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="never"> >+ </head> >+ <body> >+ <p>Check that resources from external stylesheets (referenced from a >+ ProcessingInstruction) are loaded with the referrer and referrer policy >+ from the external stylesheet.</p> >+ >+ <div class="styled"></div> >+ >+ <script> >+ promise_test(function(css_test) { >+ var id = token(); >+ var url_prefix = location.protocol + "//www1." + location.hostname + ":" + location.port; >+ var css_url = url_prefix + "/common/security-features/subresource/stylesheet.py?id=" + id; >+ var img_url = url_prefix + "/common/security-features/subresource/image.py" + >+ "?id=" + id + "&report-headers"; >+ >+ var processingInstruction = document.createProcessingInstruction("xml-stylesheet", "href=\"" + css_url + "\" type=\"text/css\""); >+ document.insertBefore(processingInstruction, document.firstChild); >+ return timeoutPromise(css_test, 1000) >+ .then(() => requestViaXhr(img_url)) >+ .then(function(message) { >+ assert_own_property(message, "headers"); >+ assert_own_property(message, "referrer"); >+ assert_equals(message.referrer, css_url); >+ }); >+ }, "Image from external stylesheet (from ProcessingInstruction)."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/w3c-import.log >new file mode 100644 >index 00000000000..b84e1670cf9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/w3c-import.log >@@ -0,0 +1,23 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-import-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/external-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/inline-style.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-import-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/internal-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/presentation-attribute.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/image/processing-instruction.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/external-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/external-stylesheet-expected.txt >new file mode 100644 >index 00000000000..16cf2be7103 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/external-stylesheet-expected.txt >@@ -0,0 +1,13 @@ >+Check that resources from external stylesheets are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+FAIL Test styling SVG from external style fill promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Test styling SVG from external style stroke promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Test styling SVG from external style filter promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Test styling SVG from external style clip-path promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Test styling SVG from external style marker-start promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Test styling SVG from external style marker-mid promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Test styling SVG from external style marker-end promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Test styling SVG from external style mask promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Test styling SVG from external style mask-image promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/external-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/external-stylesheet.html >new file mode 100644 >index 00000000000..54ee36ce30b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/external-stylesheet.html >@@ -0,0 +1,42 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - styling SVG from external stylesheet</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <!-- Helper functions for referrer-policy css tests. --> >+ <script src="/referrer-policy/css-integration/css-test-helper.js"></script> >+ <meta name="referrer" content="never"> >+ </head> >+ <body> >+ <p>Check that resources from external stylesheets are loaded with >+ the referrer and referrer policy from the external stylesheet.</p> >+ >+ <script> >+ function addLinkStyleSheet(test) { >+ let css_url = url_prefix + "stylesheet.py?id=" + test.id + >+ "&type=svg" + "&property=" + test.property; >+ test.expected = css_url; >+ >+ let stylesheet = >+ document.createElementNS("http://www.w3.org/1999/xhtml", "link"); >+ stylesheet.setAttribute("type", "text/css"); >+ stylesheet.setAttribute("rel", "stylesheet"); >+ stylesheet.setAttribute("href", css_url); >+ let svg = createSvg(); >+ document.body.appendChild(svg); >+ svg.appendChild(stylesheet); >+ } >+ >+ runSvgTests(svg_test_properties, >+ "Test styling SVG from external style", >+ addLinkStyleSheet); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/inline-style-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/inline-style-expected.txt >new file mode 100644 >index 00000000000..85508a84868 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/inline-style-expected.txt >@@ -0,0 +1,13 @@ >+Check that resources from inline styles are loaded with the referrer and referrer policy from the document. >+ >+ >+FAIL Styling SVG from inline styles fill promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from inline styles stroke promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from inline styles filter promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from inline styles clip-path promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from inline styles marker-start promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from inline styles marker-mid promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from inline styles marker-end promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from inline styles mask promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from inline styles mask-image promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/inline-style.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/inline-style.html >new file mode 100644 >index 00000000000..59fb4025f3b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/inline-style.html >@@ -0,0 +1,36 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - styling SVG from inline style</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <!-- Helper functions for referrer-policy css tests. --> >+ <script src="/referrer-policy/css-integration/css-test-helper.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from inline styles are loaded with >+ the referrer and referrer policy from the document.</p> >+ <script> >+ function setInlineStyle(test) >+ { >+ test.expected = location.origin + "/"; >+ let svg = createSvg(); >+ document.body.appendChild(svg); >+ let element = svg.getElementsByTagName('path')[0]; >+ element.style = test.property + ": url(" + url_prefix + "svg.py?id=" + >+ test.id + "#invalidFragment);"; >+ } >+ >+ runSvgTests(svg_test_properties, >+ "Styling SVG from inline styles", >+ setInlineStyle); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/internal-stylesheet-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/internal-stylesheet-expected.txt >new file mode 100644 >index 00000000000..838246c9082 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/internal-stylesheet-expected.txt >@@ -0,0 +1,13 @@ >+Check that resources from internal styles are loaded with the referrer and referrer policy from the document. >+ >+ >+FAIL Styling SVG from internal styles fill promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from internal styles stroke promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from internal styles filter promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from internal styles clip-path promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from internal styles marker-start promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from internal styles marker-mid promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from internal styles marker-end promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from internal styles mask promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from internal styles mask-image promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/internal-stylesheet.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/internal-stylesheet.html >new file mode 100644 >index 00000000000..82d75665ea1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/internal-stylesheet.html >@@ -0,0 +1,36 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - styling SVG from internal style</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <!-- Helper functions for referrer-policy css tests. --> >+ <script src="/referrer-policy/css-integration/css-test-helper.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from internal styles are loaded with >+ the referrer and referrer policy from the document.</p> >+ <script> >+ function setInternalStyle(test) { >+ test.expected = location.origin + "/"; >+ let style = document.createElementNS(svg_ns, "style"); >+ style.textContent = "path { " + test.property + ": url(" + url_prefix + >+ "svg.py?id=" + test.id + "#invalidFragment);"; >+ let svg = createSvg(); >+ svg.appendChild(style); >+ document.body.appendChild(svg); >+ } >+ >+ runSvgTests(svg_test_properties, >+ "Styling SVG from internal styles", >+ setInternalStyle); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/presentation-attribute-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/presentation-attribute-expected.txt >new file mode 100644 >index 00000000000..a3ca9d9cd48 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/presentation-attribute-expected.txt >@@ -0,0 +1,12 @@ >+Check that resources from presentation attributes are loaded with the referrer and referrer policy from the document. >+ >+ >+FAIL Styling SVG from presentation attributes fill promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from presentation attributes stroke promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from presentation attributes filter promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from presentation attributes clip-path promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from presentation attributes marker-start promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from presentation attributes marker-mid promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from presentation attributes marker-end promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from presentation attributes mask promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/presentation-attribute.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/presentation-attribute.html >new file mode 100644 >index 00000000000..8e616416380 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/presentation-attribute.html >@@ -0,0 +1,41 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - styling SVG from external stylesheet from >+ presentation attribute</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <!-- Helper functions for referrer-policy css tests. --> >+ <script src="/referrer-policy/css-integration/css-test-helper.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from presentation attributes are loaded with >+ the referrer and referrer policy from the document.</p> >+ <script> >+ function setPresentationAttribute(test) >+ { >+ test.expected = location.origin + "/"; >+ let svg = createSvg(); >+ document.body.appendChild(svg); >+ let element = svg.getElementsByTagName("path")[0]; >+ // The test property should have map 1:1 with presentation attribute. >+ let attr = test.property; >+ element.setAttribute(attr, "url(" + url_prefix + "svg.py?id=" + >+ test.id + "#invalidFragment)"); >+ } >+ >+ // mask-image is not the presentation attribute. >+ runSvgTests(svg_test_properties.filter(p => p != 'mask-image'), >+ "Styling SVG from presentation attributes", >+ setPresentationAttribute); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/processing-instruction-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/processing-instruction-expected.txt >new file mode 100644 >index 00000000000..5878d1f4fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/processing-instruction-expected.txt >@@ -0,0 +1,14 @@ >+Check that resources from external stylesheets (referenced from a ProcessingInstruction) are loaded with the referrer and referrer policy from the external stylesheet. >+ >+ >+ >+FAIL Styling SVG from ProcessingInstruction fill promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from ProcessingInstruction stroke promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from ProcessingInstruction filter promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from ProcessingInstruction clip-path promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from ProcessingInstruction marker-start promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from ProcessingInstruction marker-mid promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from ProcessingInstruction marker-end promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from ProcessingInstruction mask promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+FAIL Styling SVG from ProcessingInstruction mask-image promise_test: Unhandled rejection with value: object "SyntaxError: The string did not match the expected pattern." >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/processing-instruction.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/processing-instruction.html >new file mode 100644 >index 00000000000..99ec1ae6aeb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/processing-instruction.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>CSS integration - styling SVG from external stylesheet via >+ ProcessingInstruction</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/utils.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <!-- Helper functions for referrer-policy css tests. --> >+ <script src="/referrer-policy/css-integration/css-test-helper.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body> >+ <p>Check that resources from external stylesheets (referenced from a >+ ProcessingInstruction) are loaded with the referrer and referrer policy >+ from the external stylesheet.</p> >+ <script> >+ function addProcessingInstruction(test) { >+ let svg_url = url_prefix + "svg.py?id=" + test.id + "&type=svg" + >+ "&property=" + test.property + "&embedded-svg"; >+ let iframe = document.createElement("iframe"); >+ test.expected = url_prefix + "stylesheet.py?id=" + test.id + >+ "&type=svg" + "&property=" + test.property; >+ iframe.src = svg_url; >+ document.body.appendChild(iframe); >+ } >+ >+ runSvgTests(svg_test_properties, >+ "Styling SVG from ProcessingInstruction", >+ addProcessingInstruction); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/w3c-import.log >new file mode 100644 >index 00000000000..24457a382c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/w3c-import.log >@@ -0,0 +1,21 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/external-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/inline-style.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/internal-stylesheet.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/presentation-attribute.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/svg/processing-instruction.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/w3c-import.log >new file mode 100644 >index 00000000000..a169cac0aca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/README.md >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/css-integration/css-test-helper.js >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/iframe-inheritance-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/iframe-inheritance-expected.txt >new file mode 100644 >index 00000000000..ab97c44592b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/iframe-inheritance-expected.txt >@@ -0,0 +1,5 @@ >+Referrer Policy: iframes correctly inherit the ancestor's referrer >+ >+ >+FAIL iframes correctly inherit the ancestor's referrer assert_equals: expected (string) "http://localhost:8800/" but got (undefined) undefined >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/iframe-inheritance.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/iframe-inheritance.html >new file mode 100644 >index 00000000000..ca17e03933a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/iframe-inheritance.html >@@ -0,0 +1,44 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer Policy: iframes correctly inherit the ancestor's referrer</title> >+ <link rel="author" title="Jochen Eisinger" href="mailto:jochen@chromium.org"> >+ <link rel="help" href="https://www.w3.org/TR/referrer-policy/#referrer-policy-delivery-nested"> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ <meta name="referrer" content="origin"> >+ </head> >+ <body onload="runTest()"> >+ <h1>Referrer Policy: iframes correctly inherit the ancestor's referrer</h1> >+ <script> >+ var test = async_test("iframes correctly inherit the ancestor's referrer"); >+ window.addEventListener("message", test.step_func((msg) => { >+ assert_equals(msg.data.referrer, document.location.origin + "/"); >+ test.done(); >+ })); >+ >+ function runTest() { >+ var iframe = document.createElement("iframe"); >+ iframe.src = "about:blank"; >+ document.body.appendChild(iframe); >+ iframe.contentDocument.write(` >+ <script src = "/common/security-features/resources/common.js"></` + `script> >+ <script src = "/referrer-policy/generic/referrer-policy-test-case.js"></` + `script> >+ <script> >+ var urlPath = "/common/security-features/subresource/xhr.py"; >+ var url = "${location.protocol}//www1.${location.hostname}:${location.port}" + urlPath; >+ requestViaXhr(url).then((msg) => { >+ parent.postMessage({referrer: msg.referrer}, "*")}) >+ .catch((e) => { >+ parent.postMessage({referrer: "FAILURE"}, "*"); >+ }); >+ </` + "script>"); >+ } >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/link-rel-prefetch-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/link-rel-prefetch-expected.txt >new file mode 100644 >index 00000000000..ebc44331f2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/link-rel-prefetch-expected.txt >@@ -0,0 +1,5 @@ >+Check that resources loaded via link rel prefetch use the referrer and referrer policy from the document. >+ >+ >+PASS Prefetched image. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/link-rel-prefetch.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/link-rel-prefetch.html >new file mode 100644 >index 00000000000..914ddfc4b22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/link-rel-prefetch.html >@@ -0,0 +1,28 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer policies for resources loaded via link rel prefetch</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <meta name="referrer" content="origin"> >+ <link rel="prefetch" href="/common/security-features/subresource/image.py"> >+ </head> >+ <body> >+ <p>Check that resources loaded via link rel prefetch use the referrer >+ and referrer policy from the document.</p> >+ >+ <script> >+ var img_url = "/common/security-features/subresource/image.py"; >+ promise_test((t) => timeoutPromise(t, 1000) >+ .then(() => requestViaImage(img_url, null)) >+ .then(message => { >+ assert_equals(message.headers.referer, document.location.origin + "/"); >+ }), >+ "Prefetched image."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values-expected.txt >new file mode 100644 >index 00000000000..9ed987c6161 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values-expected.txt >@@ -0,0 +1,7 @@ >+Referrer Policy: multiple Referrer-Policy header and header values are allowed >+ >+Running... >+ >+ >+PASS Image uses the last recognized Referrer-Policy header value >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values.html >new file mode 100644 >index 00000000000..b7a9c9fe0e4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values.html >@@ -0,0 +1,31 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer Policy: multiple Referrer-Policy header and header values are allowed</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Referrer Policy: multiple Referrer-Policy header and header values are allowed</h1> >+ <p></p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(() => { >+ var urlPath = '/common/security-features/subresource/image.py?cache_destroyer=' + (new Date()).getTime(); >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaImage(url, null, 'no-referrer') >+ .then(function(message) { >+ assert_equals(message.referrer, document.location.origin + "/"); >+ }); >+ }, "Image uses the last recognized Referrer-Policy header value"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values.html.headers >new file mode 100644 >index 00000000000..d1acc2f1d3c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Referrer-Policy: no-referrer,origin >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined-expected.txt >new file mode 100644 >index 00000000000..772c6f29bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined-expected.txt >@@ -0,0 +1,7 @@ >+Referrer Policy: multiple Referrer-Policy header values are allowed >+ >+Running... >+ >+ >+PASS Image uses the last recognized Referrer-Policy header value >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined.html >new file mode 100644 >index 00000000000..c13403aa22a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined.html >@@ -0,0 +1,31 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer Policy: multiple Referrer-Policy header values are allowed</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Referrer Policy: multiple Referrer-Policy header values are allowed</h1> >+ <p></p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(() => { >+ var urlPath = '/common/security-features/subresource/image.py?cache_destroyer=' + (new Date()).getTime(); >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaImage(url, null, 'no-referrer') >+ .then(function(message) { >+ assert_equals(message.referrer, document.location.origin + "/"); >+ }); >+ }, "Image uses the last recognized Referrer-Policy header value"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined.html.headers >new file mode 100644 >index 00000000000..fc30a2a1862 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined.html.headers >@@ -0,0 +1 @@ >+Referrer-Policy: no-referrer, origin >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-expected.txt >new file mode 100644 >index 00000000000..39bfa08bfa6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-expected.txt >@@ -0,0 +1,7 @@ >+Referrer Policy: multiple Referrer-Policy headers are allowed >+ >+Running... >+ >+ >+PASS Image uses the last recognized Referrer-Policy header >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid-expected.txt >new file mode 100644 >index 00000000000..2b18812defd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid-expected.txt >@@ -0,0 +1,7 @@ >+Referrer Policy: multiple Referrer-Policy headers with one invalid >+ >+Running... >+ >+ >+FAIL Referrer policy header parsing fails if one header is invalid assert_equals: expected "http://localhost:8800/referrer-policy/generic/multiple-headers-one-invalid.html" but got "http://localhost:8800/" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid.html >new file mode 100644 >index 00000000000..c36c456e23a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid.html >@@ -0,0 +1,31 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer Policy: multiple Referrer-Policy headers with one invalid</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Referrer Policy: multiple Referrer-Policy headers with one invalid</h1> >+ <p></p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(() => { >+ var urlPath = '/common/security-features/subresource/image.py?cache_destroyer=' + (new Date()).getTime(); >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaImage(url, null, 'no-referrer') >+ .then(function(message) { >+ assert_equals(message.referrer, document.location.href); >+ }); >+ }, "Referrer policy header parsing fails if one header is invalid"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid.html.headers >new file mode 100644 >index 00000000000..07521938041 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Referrer-Policy: origin no-referrer >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token-expected.txt >new file mode 100644 >index 00000000000..68b24126d67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token-expected.txt >@@ -0,0 +1,7 @@ >+Referrer Policy: multiple Referrer-Policy headers with one invalid >+ >+Running... >+ >+ >+PASS Image uses last recognized referrer policy token from Referrer-Policy headers >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token.html >new file mode 100644 >index 00000000000..6a8c8eecbff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token.html >@@ -0,0 +1,31 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer Policy: multiple Referrer-Policy headers with one invalid</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Referrer Policy: multiple Referrer-Policy headers with one invalid</h1> >+ <p></p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(() => { >+ var urlPath = '/common/security-features/subresource/image.py?cache_destroyer=' + (new Date()).getTime(); >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaImage(url, null, 'no-referrer') >+ .then(function(message) { >+ assert_equals(message.referrer, document.location.origin + "/"); >+ }); >+ }, "Image uses last recognized referrer policy token from Referrer-Policy headers"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token.html.headers >new file mode 100644 >index 00000000000..46feffd705f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Referrer-Policy: origin,not-a-valid-token >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers.html >new file mode 100644 >index 00000000000..5b9c4eb20a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers.html >@@ -0,0 +1,31 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer Policy: multiple Referrer-Policy headers are allowed</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Referrer Policy: multiple Referrer-Policy headers are allowed</h1> >+ <p></p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(() => { >+ var urlPath = '/common/security-features/subresource/image.py?cache_destroyer=' + (new Date()).getTime(); >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaImage(url, null, 'no-referrer') >+ .then(function(message) { >+ assert_equals(message.referrer, document.location.origin + "/"); >+ }); >+ }, "Image uses the last recognized Referrer-Policy header"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers.html.headers >new file mode 100644 >index 00000000000..dd1dd853f20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Referrer-Policy: origin >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.js b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.js >new file mode 100644 >index 00000000000..c8a3beaf89e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.js >@@ -0,0 +1,188 @@ >+// TODO: This function is currently placed and duplicated at: >+// - mixed-content/generic/mixed-content-test-case.js >+// - referrer-policy/generic/referrer-policy-test-case.js >+// but should be moved to /common/security-features/resources/common.js. >+function getSubresourceOrigin(originType) { >+ const httpProtocol = "http"; >+ const httpsProtocol = "https"; >+ const wsProtocol = "ws"; >+ const wssProtocol = "wss"; >+ >+ const sameOriginHost = "{{host}}"; >+ const crossOriginHost = "{{domains[www1]}}"; >+ >+ // These values can evaluate to either empty strings or a ":port" string. >+ const httpPort = getNormalizedPort(parseInt("{{ports[http][0]}}", 10)); >+ const httpsPort = getNormalizedPort(parseInt("{{ports[https][0]}}", 10)); >+ const wsPort = getNormalizedPort(parseInt("{{ports[ws][0]}}", 10)); >+ const wssPort = getNormalizedPort(parseInt("{{ports[wss][0]}}", 10)); >+ >+ /** >+ @typedef OriginType >+ @type {string} >+ >+ Represents the origin of the subresource request URL. >+ The keys of `originMap` below are the valid values. >+ >+ Note that there can be redirects from the specified origin >+ (see RedirectionType), and thus the origin of the subresource >+ response URL might be different from what is specified by OriginType. >+ */ >+ const originMap = { >+ "same-https": httpsProtocol + "://" + sameOriginHost + httpsPort, >+ "same-http": httpProtocol + "://" + sameOriginHost + httpPort, >+ "cross-https": httpsProtocol + "://" + crossOriginHost + httpsPort, >+ "cross-http": httpProtocol + "://" + crossOriginHost + httpPort, >+ "same-wss": wssProtocol + "://" + sameOriginHost + wssPort, >+ "same-ws": wsProtocol + "://" + sameOriginHost + wsPort, >+ "cross-wss": wssProtocol + "://" + crossOriginHost + wssPort, >+ "cross-ws": wsProtocol + "://" + crossOriginHost + wsPort, >+ }; >+ >+ return originMap[originType]; >+} >+ >+// NOTE: This method only strips the fragment and is not in accordance to the >+// recommended draft specification: >+// https://w3c.github.io/webappsec/specs/referrer-policy/#null >+// TODO(kristijanburnik): Implement this helper as defined by spec once added >+// scenarios for URLs containing username/password/etc. >+function stripUrlForUseAsReferrer(url) { >+ return url.replace(/#.*$/, ""); >+} >+ >+function ReferrerPolicyTestCase(scenario, testDescription, sanityChecker) { >+ // Pass and skip rest of the test if browser does not support fetch. >+ if (scenario.subresource == "fetch-request" && !window.fetch) { >+ // TODO(kristijanburnik): This should be refactored. >+ return { >+ start: function() { >+ test(function() { assert_true(true); }, >+ "[ReferrerPolicyTestCase] Skipping test: Fetch is not supported."); >+ } >+ }; >+ } >+ >+ // This check is A NOOP in release. >+ sanityChecker.checkScenario(scenario); >+ >+ const originTypeConversion = { >+ "same-origin-http": "same-http", >+ "same-origin-https": "same-https", >+ "cross-origin-http": "cross-http", >+ "cross-origin-https": "cross-https" >+ }; >+ const urls = getRequestURLs( >+ scenario.subresource, >+ originTypeConversion[scenario.origin + '-' + scenario.target_protocol], >+ scenario.redirection); >+ >+ const referrerUrlResolver = { >+ "omitted": function(sourceUrl) { >+ return undefined; >+ }, >+ "origin": function(sourceUrl) { >+ return new URL(sourceUrl).origin + "/"; >+ }, >+ "stripped-referrer": function(sourceUrl) { >+ return stripUrlForUseAsReferrer(sourceUrl); >+ } >+ }; >+ >+ const checkResult = (expectedReferrerUrl, result) => { >+ // Check if the result is in valid format. NOOP in release. >+ sanityChecker.checkSubresourceResult(scenario, urls.testUrl, result); >+ >+ // Check the reported URL. >+ assert_equals(result.referrer, >+ expectedReferrerUrl, >+ "Reported Referrer URL is '" + >+ scenario.referrer_url + "'."); >+ assert_equals(result.headers.referer, >+ expectedReferrerUrl, >+ "Reported Referrer URL from HTTP header is '" + >+ expectedReferrerUrl + "'"); >+ }; >+ >+ function runTest() { >+ const deliveryTypeConversion = { >+ "attr-referrer": "attr", >+ "rel-noreferrer": "rel-noref", >+ // Other delivery methods such as "http-rp" are ignored here because >+ // they are already applied to the main document by generator.py. >+ }; >+ >+ /** @type {PolicyDelivery} */ >+ const delivery = { >+ deliveryType: deliveryTypeConversion[scenario.delivery_method], >+ key: "referrerPolicy", >+ value: scenario.referrer_policy}; >+ >+ /** @type {Subresource} */ >+ const subresource = { >+ subresourceType: scenario.subresource, >+ url: urls.testUrl, >+ policyDeliveries: [delivery] >+ }; >+ >+ const expectedReferrer = >+ referrerUrlResolver[scenario.referrer_url](location.toString()); >+ >+ // Request in the top-level document. >+ promise_test(_ => { >+ return invokeRequest(subresource, []) >+ .then(result => checkResult(expectedReferrer, result)); >+ }, testDescription); >+ >+ // We test requests from inside iframes only for <img> tags. >+ // This is just to preserve the previous test coverage. >+ // TODO(hiroshige): Enable iframe tests for all subresource types. >+ if (scenario.subresource !== "img-tag") { >+ return; >+ } >+ >+ // Request in a `srcdoc` frame to ensure that it uses the referrer >+ // policy of its parent, >+ promise_test(_ => { >+ /** @type {Array<SourceContext>} */ >+ const sourceContextList = [{sourceContextType: "srcdoc"}]; >+ >+ return invokeRequest(subresource, sourceContextList) >+ .then(result => checkResult(expectedReferrer, result)); >+ }, testDescription + " (srcdoc iframe inherits parent)"); >+ >+ // Request in a `srcdoc` frame with its own referrer policy to >+ // override its parent. >+ promise_test(_ => { >+ // Give a srcdoc iframe a referrer policy different from the >+ // top-level page's policy. >+ const overridingPolicy = >+ scenario.referrer_policy === "no-referrer" ? "unsafe-url" >+ : "no-referrer"; >+ const overrridingExpectedReferrer = >+ referrerUrlResolver[overridingPolicy === "no-referrer" >+ ? "omitted" >+ : "stripped-referrer"](location.toString()); >+ >+ /** @type {Subresource} */ >+ const subresourceWithoutDelivery = { >+ subresourceType: scenario.subresource, >+ url: urls.testUrl >+ }; >+ >+ // <iframe srcdoc> with overriding <meta> referrerPolicy. >+ /** @type {Array<SourceContext>} */ >+ const sourceContextList = [{ >+ sourceContextType: "srcdoc", >+ policyDeliveries: [{deliveryType: "meta", >+ key: "referrerPolicy", >+ value: overridingPolicy}] >+ }]; >+ >+ return invokeRequest(subresourceWithoutDelivery, sourceContextList) >+ .then(result => checkResult(overrridingExpectedReferrer, result)); >+ }, testDescription + " (overridden by srcdoc iframe)"); >+ } >+ >+ return {start: runTest}; >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.sub.js b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.sub.js >new file mode 100644 >index 00000000000..8fb419d5950 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.sub.js >@@ -0,0 +1,205 @@ >+// TODO: This function is currently placed and duplicated at: >+// - mixed-content/generic/mixed-content-test-case.js >+// - referrer-policy/generic/referrer-policy-test-case.sub.js >+// but should be moved to /common/security-features/resources/common.js. >+ >+function crossOriginReferrerPolicyBaseURL() >+{ >+ return getSubresourceOrigin("cross-" + location.protocol.substring(0, location.protocol.length - 1)); >+} >+ >+function getOriginHosts() >+{ >+ return { sameOriginHost: "{{host}}", crossOriginHost: "{{hosts[alt][]}}" }; >+} >+ >+function getSubresourceOrigin(originType) { >+ const httpProtocol = "http"; >+ const httpsProtocol = "https"; >+ const wsProtocol = "ws"; >+ const wssProtocol = "wss"; >+ >+ const { sameOriginHost, crossOriginHost } = getOriginHosts(); >+ >+ // These values can evaluate to either empty strings or a ":port" string. >+ const httpPort = getNormalizedPort(parseInt("{{ports[http][0]}}", 10)); >+ const httpsPort = getNormalizedPort(parseInt("{{ports[https][0]}}", 10)); >+ const wsPort = getNormalizedPort(parseInt("{{ports[ws][0]}}", 10)); >+ const wssPort = getNormalizedPort(parseInt("{{ports[wss][0]}}", 10)); >+ >+ /** >+ @typedef OriginType >+ @type {string} >+ >+ Represents the origin of the subresource request URL. >+ The keys of `originMap` below are the valid values. >+ >+ Note that there can be redirects from the specified origin >+ (see RedirectionType), and thus the origin of the subresource >+ response URL might be different from what is specified by OriginType. >+ */ >+ const originMap = { >+ "same-https": httpsProtocol + "://" + sameOriginHost + httpsPort, >+ "same-http": httpProtocol + "://" + sameOriginHost + httpPort, >+ "cross-https": httpsProtocol + "://" + crossOriginHost + httpsPort, >+ "cross-http": httpProtocol + "://" + crossOriginHost + httpPort, >+ "same-wss": wssProtocol + "://" + sameOriginHost + wssPort, >+ "same-ws": wsProtocol + "://" + sameOriginHost + wsPort, >+ "cross-wss": wssProtocol + "://" + crossOriginHost + wssPort, >+ "cross-ws": wsProtocol + "://" + crossOriginHost + wsPort, >+ }; >+ >+ return originMap[originType]; >+} >+ >+// NOTE: This method only strips the fragment and is not in accordance to the >+// recommended draft specification: >+// https://w3c.github.io/webappsec/specs/referrer-policy/#null >+// TODO(kristijanburnik): Implement this helper as defined by spec once added >+// scenarios for URLs containing username/password/etc. >+function stripUrlForUseAsReferrer(url) { >+ return url.replace(/#.*$/, ""); >+} >+ >+function ReferrerPolicyTestCase(scenario, testDescription, sanityChecker) { >+ // Pass and skip rest of the test if browser does not support fetch. >+ if (scenario.subresource == "fetch-request" && !window.fetch) { >+ // TODO(kristijanburnik): This should be refactored. >+ return { >+ start: function() { >+ test(function() { assert_true(true); }, >+ "[ReferrerPolicyTestCase] Skipping test: Fetch is not supported."); >+ } >+ }; >+ } >+ >+ // This check is A NOOP in release. >+ sanityChecker.checkScenario(scenario); >+ >+ const originTypeConversion = { >+ "same-origin-http": "same-http", >+ "same-origin-https": "same-https", >+ "cross-origin-http": "cross-http", >+ "cross-origin-https": "cross-https" >+ }; >+ >+ let redirectionOrigin; >+ if (scenario.redirection === "swap-origin-redirect") { >+ const { sameOriginHost, crossOriginHost } = getOriginHosts(); >+ redirectionOrigin = scenario.origin === "same-origin" ? crossOriginHost : sameOriginHost; >+ } >+ >+ const urls = getRequestURLs( >+ scenario.subresource, >+ originTypeConversion[scenario.origin + '-' + scenario.target_protocol], >+ scenario.redirection, redirectionOrigin); >+ >+ const referrerUrlResolver = { >+ "omitted": function(sourceUrl) { >+ return undefined; >+ }, >+ "origin": function(sourceUrl) { >+ return new URL(sourceUrl).origin + "/"; >+ }, >+ "stripped-referrer": function(sourceUrl) { >+ return stripUrlForUseAsReferrer(sourceUrl); >+ } >+ }; >+ >+ const checkResult = (expectedReferrerUrl, result) => { >+ // Check if the result is in valid format. NOOP in release. >+ sanityChecker.checkSubresourceResult(scenario, urls.testUrl, result); >+ >+ // Check the reported URL. >+ assert_equals(result.referrer, >+ expectedReferrerUrl, >+ "Reported Referrer URL is '" + >+ scenario.referrer_url + "'."); >+ assert_equals(result.headers.referer, >+ expectedReferrerUrl, >+ "Reported Referrer URL from HTTP header is '" + >+ expectedReferrerUrl + "'"); >+ }; >+ >+ function runTest() { >+ const deliveryTypeConversion = { >+ "attr-referrer": "attr", >+ "rel-noreferrer": "rel-noref", >+ // Other delivery methods such as "http-rp" are ignored here because >+ // they are already applied to the main document by generator.py. >+ }; >+ >+ /** @type {PolicyDelivery} */ >+ const delivery = { >+ deliveryType: deliveryTypeConversion[scenario.delivery_method], >+ key: "referrerPolicy", >+ value: scenario.referrer_policy}; >+ >+ /** @type {Subresource} */ >+ const subresource = { >+ subresourceType: scenario.subresource, >+ url: urls.testUrl, >+ policyDeliveries: [delivery] >+ }; >+ >+ const expectedReferrer = >+ referrerUrlResolver[scenario.referrer_url](location.toString()); >+ >+ // Request in the top-level document. >+ promise_test(_ => { >+ return invokeRequest(subresource, []) >+ .then(result => checkResult(expectedReferrer, result)); >+ }, testDescription); >+ >+ // We test requests from inside iframes only for <img> tags. >+ // This is just to preserve the previous test coverage. >+ // TODO(hiroshige): Enable iframe tests for all subresource types. >+ if (scenario.subresource !== "img-tag") { >+ return; >+ } >+ >+ // Request in a `srcdoc` frame to ensure that it uses the referrer >+ // policy of its parent, >+ promise_test(_ => { >+ /** @type {Array<SourceContext>} */ >+ const sourceContextList = [{sourceContextType: "srcdoc"}]; >+ >+ return invokeRequest(subresource, sourceContextList) >+ .then(result => checkResult(expectedReferrer, result)); >+ }, testDescription + " (srcdoc iframe inherits parent)"); >+ >+ // Request in a `srcdoc` frame with its own referrer policy to >+ // override its parent. >+ promise_test(_ => { >+ // Give a srcdoc iframe a referrer policy different from the >+ // top-level page's policy. >+ const overridingPolicy = >+ scenario.referrer_policy === "no-referrer" ? "unsafe-url" >+ : "no-referrer"; >+ const overrridingExpectedReferrer = >+ referrerUrlResolver[overridingPolicy === "no-referrer" >+ ? "omitted" >+ : "stripped-referrer"](location.toString()); >+ >+ /** @type {Subresource} */ >+ const subresourceWithoutDelivery = { >+ subresourceType: scenario.subresource, >+ url: urls.testUrl >+ }; >+ >+ // <iframe srcdoc> with overriding <meta> referrerPolicy. >+ /** @type {Array<SourceContext>} */ >+ const sourceContextList = [{ >+ sourceContextType: "srcdoc", >+ policyDeliveries: [{deliveryType: "meta", >+ key: "referrerPolicy", >+ value: overridingPolicy}] >+ }]; >+ >+ return invokeRequest(subresourceWithoutDelivery, sourceContextList) >+ .then(result => checkResult(overrridingExpectedReferrer, result)); >+ }, testDescription + " (overridden by srcdoc iframe)"); >+ } >+ >+ return {start: runTest}; >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sandboxed-iframe-with-opaque-origin-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sandboxed-iframe-with-opaque-origin-expected.txt >new file mode 100644 >index 00000000000..671d35dfe79 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sandboxed-iframe-with-opaque-origin-expected.txt >@@ -0,0 +1,9 @@ >+CONSOLE MESSAGE: Origin null is not allowed by Access-Control-Allow-Origin. >+CONSOLE MESSAGE: XMLHttpRequest cannot load http://localhost:8800/referrer-policy/generic/undefined/common/security-features/subresource/xhr.py due to access control checks. >+Referrer Policy: A document with an opaque origin doesn't send referrers >+ >+ >+ >+FAIL Sandboxed iframe with opaque origin doesn't send referrers. assert_equals: expected (undefined) undefined but got (string) "FAILURE" >+FAIL Sandboxed iframe with tuple origin sends referrers. assert_equals: expected "http://localhost:8800/referrer-policy/generic/sandboxed-iframe-with-opaque-origin.html" but got "FAILURE" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sandboxed-iframe-with-opaque-origin.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sandboxed-iframe-with-opaque-origin.html >new file mode 100644 >index 00000000000..da3455cb2a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sandboxed-iframe-with-opaque-origin.html >@@ -0,0 +1,51 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer Policy: Sandboxed iframes with opaque origins don't send referrers</title> >+ <link rel="author" title="Jochen Eisinger" href="mailto:jochen@chromium.org"> >+ <link rel="help" href="https://www.w3.org/TR/referrer-policy/#determine-requests-referrer"> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Referrer Policy: A document with an opaque origin doesn't send referrers</h1> >+ <script> >+ function testSandboxedIframe(description, sandboxAttributes, expectedReferrer) { >+ async_test(function(test) { >+ window.addEventListener("message", test.step_func((msg) => { >+ if (msg.data.description === description) { >+ assert_equals(msg.data.referrer, expectedReferrer); >+ test.done(); >+ } >+ })); >+ >+ var iframe = document.createElement("iframe"); >+ iframe.sandbox = sandboxAttributes; >+ iframe.srcdoc = ` >+ <meta name = "referrer" content = "always"> >+ <script src = "/common/security-features/resources/common.js"></` + `script> >+ <script src = "/referrer-policy/generic/referrer-policy-test-case.js"></` + `script> >+ <script> >+ var urlPath = "/common/security-features/subresource/xhr.py"; >+ var url = "${location.protocol}//www1.${location.hostname}:${location.port}" + urlPath; >+ requestViaXhr(url).then((msg) => { >+ parent.postMessage({referrer: msg.referrer, description: "${description}"}, "*") >+ }) >+ .catch((e) => { >+ parent.postMessage({referrer: "FAILURE", description: "${description}"}, "*") >+ }); >+ </` + "script>"; >+ document.body.appendChild(iframe); >+ }, description); >+ } >+ >+ testSandboxedIframe("Sandboxed iframe with opaque origin doesn't send referrers.", "allow-scripts", undefined); >+ testSandboxedIframe("Sandboxed iframe with tuple origin sends referrers.", "allow-same-origin allow-scripts", document.location.href); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sanity-checker.js b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sanity-checker.js >new file mode 100644 >index 00000000000..e296ce93b96 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sanity-checker.js >@@ -0,0 +1,46 @@ >+// The SanityChecker is used in debug mode to identify problems with the >+// structure of the testsuite. In release mode it is mocked out to do nothing. >+ >+function SanityChecker() {} >+ >+SanityChecker.prototype.checkScenario = function(scenario) { >+ // Check if scenario is valid. >+ // TODO(kristijanburnik): Move to a sanity-checks.js for debug mode only. >+ test(function() { >+ >+ // We extend the exsiting test_expansion_schema not to kill performance by >+ // copying. >+ var expectedFields = SPEC_JSON["test_expansion_schema"]; >+ expectedFields["referrer_policy"] = SPEC_JSON["referrer_policy_schema"]; >+ >+ for (var field in expectedFields) { >+ assert_own_property(scenario, field, >+ "The scenario contains field " + field) >+ assert_in_array(scenario[field], expectedFields[field], >+ "Scenario's " + field + " is one of: " + >+ expectedFields[field].join(", ")) + "." >+ } >+ >+ // Check if the protocol is matched. >+ assert_equals(scenario["source_protocol"] + ":", location.protocol, >+ "Protocol of the test page should match the scenario.") >+ >+ }, "[ReferrerPolicyTestCase] The test scenario is valid."); >+} >+ >+SanityChecker.prototype.checkSubresourceResult = function(scenario, >+ subresourceUrl, >+ result) { >+ assert_equals(Object.keys(result).length, 3); >+ assert_own_property(result, "location"); >+ assert_own_property(result, "referrer"); >+ assert_own_property(result, "headers"); >+ >+ // Skip location check for scripts. >+ if (scenario.subresource == "script-tag") >+ return; >+ >+ // Sanity check: location of sub-resource matches reported location. >+ assert_equals(result.location, subresourceUrl, >+ "Subresource reported location."); >+}; >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/area-navigate-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/area-navigate-expected.txt >new file mode 100644 >index 00000000000..e6d98633389 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/area-navigate-expected.txt >@@ -0,0 +1,21 @@ >+Area Link messaging - cross-origin Area Link navigation >+ >+If you can read JSON encoded HTTP request headers of the Area link below, the messaging works as expected. >+ >+http://127.0.0.1:8800/common/security-features/subresource/document.py: >+ >+{ >+ "accept-language": "fr-fr", >+ "accept-encoding": "gzip, deflate", >+ "connection": "keep-alive", >+ "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", >+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko)", >+ "host": "127.0.0.1:8800", >+ "referer": "http://localhost:8800/referrer-policy/generic/subresource-test/area-navigate.html", >+ "upgrade-insecure-requests": "1" >+} >+ >+ >+ >+PASS Area is responding with HTTP headers >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/area-navigate.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/area-navigate.html >new file mode 100644 >index 00000000000..936e2ef0f50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/area-navigate.html >@@ -0,0 +1,40 @@ >+<!DOCTYPE html> >+<!-- TODO(kristijanburnik): Remove subres. duplication. Reuse a template. --> >+<html> >+ <head> >+ <title>Area Link messaging - cross-origin Area Link navigation</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Area Link messaging - cross-origin Area Link navigation</h1> >+ <p>If you can read JSON encoded HTTP request headers of the Area link below, >+ the messaging works as expected.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/document.py'; >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaArea(url) >+ .then(function(message) { >+ var pre = document.getElementById('received_message') >+ var headers = message.headers; >+ pre.innerHTML = ""; >+ pre.innerHTML += url + ":\n\n"; >+ pre.innerHTML += JSON.stringify(headers, null, 2) + "\n\n" >+ assert_own_property(headers, "host") >+ assert_own_property(headers, "connection") >+ }); >+ }, >+ "Area is responding with HTTP headers"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/attr-referrer-invalid-value-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/attr-referrer-invalid-value-expected.txt >new file mode 100644 >index 00000000000..0f9a480392a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/attr-referrer-invalid-value-expected.txt >@@ -0,0 +1,6 @@ >+Invalid referrerPolicy attribute value >+ >+Running... >+ >+FAIL Invalid referrerpolicy values not reflected assert_equals: expected "" but got "not-valid-value" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/attr-referrer-invalid-value.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/attr-referrer-invalid-value.html >new file mode 100644 >index 00000000000..bfdf1166ce7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/attr-referrer-invalid-value.html >@@ -0,0 +1,25 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Invalid referrerPolicy attribute value</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ </head> >+ <body> >+ <h1>Invalid referrerPolicy attribute value</h1> >+ <pre>Running...</pre> >+ >+ <script> >+ test(function () { >+ var elements = ["iframe", "img", "a", "area", "link", "script"]; >+ for (var i = 0; i < elements.length; i++) { >+ var elem = document.createElement(elements[i]); >+ elem.referrerPolicy = "unsafe-url"; >+ assert_equals(elem.referrerPolicy, "unsafe-url"); >+ elem.referrerPolicy = "not-valid-value"; >+ assert_equals(elem.referrerPolicy, ""); >+ } >+ }, "Invalid referrerpolicy values not reflected"); >+ </script> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/fetch-messaging-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/fetch-messaging-expected.txt >new file mode 100644 >index 00000000000..c21bd5f9805 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/fetch-messaging-expected.txt >@@ -0,0 +1,20 @@ >+Fetch messaging - same-origin Fetch request >+ >+If you can read JSON encoded HTTP request headers of the Fetch below, the messaging works as expected. >+ >+http://localhost:8800/common/security-features/subresource/xhr.py: >+ >+{ >+ "accept-language": "fr-fr", >+ "accept-encoding": "gzip, deflate", >+ "connection": "keep-alive", >+ "accept": "*/*", >+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko)", >+ "host": "localhost:8800", >+ "referer": "http://localhost:8800/referrer-policy/generic/subresource-test/fetch-messaging.html" >+} >+ >+ >+PASS Fetch is supported by the browser. >+PASS Fetch is responding with HTTP headers >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/fetch-messaging.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/fetch-messaging.html >new file mode 100644 >index 00000000000..cc17b3d8de9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/fetch-messaging.html >@@ -0,0 +1,43 @@ >+<!DOCTYPE html> >+<!-- TODO(kristijanburnik): Remove subres. duplication. Reuse a template. --> >+<html> >+ <head> >+ <title>Fetch messaging - same-origin Fetch request</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Fetch messaging - same-origin Fetch request</h1> >+ <p>If you can read JSON encoded HTTP request headers of the Fetch below, >+ the messaging works as expected.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ test(function() { >+ assert_true(!!window.fetch, "Fetch is not supported by this browser."); >+ }, "Fetch is supported by the browser."); >+ >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/xhr.py'; >+ var url = location.protocol + "//" + location.hostname + ":" + >+ location.port + urlPath; >+ return requestViaFetch(url) >+ .then(function(message) { >+ var pre = document.getElementById('received_message') >+ var headers = message.headers; >+ pre.innerHTML = ""; >+ pre.innerHTML += url + ":\n\n"; >+ pre.innerHTML += JSON.stringify(headers, null, 2) + "\n\n"; >+ assert_own_property(headers, "host") >+ assert_own_property(headers, "connection") >+ }); >+ }, "Fetch is responding with HTTP headers"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/iframe-messaging-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/iframe-messaging-expected.txt >new file mode 100644 >index 00000000000..2c0e8654811 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/iframe-messaging-expected.txt >@@ -0,0 +1,21 @@ >+Iframe messaging - cross-origin iframe request >+ >+If you can read JSON encoded HTTP request headers of the iframe below, the messaging works as expected. >+ >+http://127.0.0.1:8800/common/security-features/subresource/document.py: >+ >+{ >+ "accept-language": "fr-fr", >+ "accept-encoding": "gzip, deflate", >+ "connection": "keep-alive", >+ "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", >+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko)", >+ "host": "127.0.0.1:8800", >+ "referer": "http://localhost:8800/referrer-policy/generic/subresource-test/iframe-messaging.html", >+ "upgrade-insecure-requests": "1" >+} >+ >+ >+ >+PASS Iframe is responding with HTTP headers >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/iframe-messaging.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/iframe-messaging.html >new file mode 100644 >index 00000000000..45c5abc8644 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/iframe-messaging.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- TODO(kristijanburnik): Remove subres. duplication. Reuse a template. --> >+<html> >+ <head> >+ <title>Iframe messaging - cross-origin iframe request</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Iframe messaging - cross-origin iframe request</h1> >+ <p>If you can read JSON encoded HTTP request headers of the iframe below, >+ the messaging works as expected.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/document.py'; >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaIframe(url) >+ .then(function(message) { >+ var pre = document.getElementById('received_message') >+ var headers = message.headers; >+ pre.innerHTML = ""; >+ pre.innerHTML += url + ":\n\n"; >+ pre.innerHTML += JSON.stringify(headers, null, 2) + "\n\n" >+ assert_own_property(headers, "host") >+ assert_own_property(headers, "connection") >+ }); >+ }, "Iframe is responding with HTTP headers"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/image-decoding-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/image-decoding-expected.txt >new file mode 100644 >index 00000000000..adfb656ac25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/image-decoding-expected.txt >@@ -0,0 +1,21 @@ >+Image decoding - cross-origin image request >+ >+If you can read JSON encoded HTTP headers of the image below, the decoding works as expected. >+ >+http://127.0.0.1:8800/common/security-features/subresource/image.py?cache_destroyer=1556308330222: >+ >+{ >+ "origin": "http://localhost:8800", >+ "accept-language": "fr-fr", >+ "accept-encoding": "gzip, deflate", >+ "host": "127.0.0.1:8800", >+ "accept": "image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5", >+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko)", >+ "connection": "keep-alive", >+ "referer": "http://localhost:8800/referrer-policy/generic/subresource-test/image-decoding.html" >+} >+ >+ >+ >+PASS Image is encoding headers as JSON. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/image-decoding.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/image-decoding.html >new file mode 100644 >index 00000000000..a3c8626641c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/image-decoding.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- TODO(kristijanburnik): Remove subres. duplication. Reuse a template. --> >+<html> >+ <head> >+ <title>Image decoding - cross-origin image request</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Image decoding - cross-origin image request</h1> >+ <p>If you can read JSON encoded HTTP headers of the image below, >+ the decoding works as expected.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/image.py'; >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath + "?cache_destroyer=" + (new Date()).getTime(); >+ return requestViaImage(url, undefined, "always") >+ .then(function(message) { >+ var pre = document.getElementById('received_message') >+ var headers = message.headers; >+ pre.innerHTML = ""; >+ pre.innerHTML += url + ":\n\n"; >+ pre.innerHTML += JSON.stringify(headers, null, 2) + "\n\n" >+ assert_own_property(headers, "host") >+ assert_own_property(headers, "connection") >+ }); >+ }, "Image is encoding headers as JSON."); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/link-navigate-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/link-navigate-expected.txt >new file mode 100644 >index 00000000000..4c9fa6a349a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/link-navigate-expected.txt >@@ -0,0 +1,21 @@ >+Link messaging - cross-origin Link navigation >+ >+If you can read JSON encoded HTTP request headers of the Link below, the messaging works as expected. >+ >+http://127.0.0.1:8800/common/security-features/subresource/document.py: >+ >+{ >+ "accept-language": "fr-fr", >+ "accept-encoding": "gzip, deflate", >+ "connection": "keep-alive", >+ "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", >+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko)", >+ "host": "127.0.0.1:8800", >+ "referer": "http://localhost:8800/referrer-policy/generic/subresource-test/link-navigate.html", >+ "upgrade-insecure-requests": "1" >+} >+ >+ >+ >+PASS Link is responding with HTTP headers >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/link-navigate.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/link-navigate.html >new file mode 100644 >index 00000000000..966547c3580 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/link-navigate.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- TODO(kristijanburnik): Remove subres. duplication. Reuse a template. --> >+<html> >+ <head> >+ <title>Link messaging - cross-origin Link navigation</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Link messaging - cross-origin Link navigation</h1> >+ <p>If you can read JSON encoded HTTP request headers of the Link below, >+ the messaging works as expected.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/document.py'; >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaAnchor(url) >+ .then(function(message) { >+ var pre = document.getElementById('received_message') >+ var headers = message.headers; >+ pre.innerHTML = ""; >+ pre.innerHTML += url + ":\n\n"; >+ pre.innerHTML += JSON.stringify(headers, null, 2) + "\n\n" >+ assert_own_property(headers, "host") >+ assert_own_property(headers, "connection") >+ }); >+ }, "Link is responding with HTTP headers"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/script-messaging-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/script-messaging-expected.txt >new file mode 100644 >index 00000000000..cbbe01e55ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/script-messaging-expected.txt >@@ -0,0 +1,19 @@ >+Script messaging - cross-origin Script request >+ >+If you can read JSON encoded HTTP request headers of the Script below, the messaging works as expected. >+ >+http://127.0.0.1:8800/common/security-features/subresource/script.py: >+ >+{ >+ "accept-language": "fr-fr", >+ "accept-encoding": "gzip, deflate", >+ "connection": "keep-alive", >+ "accept": "*/*", >+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko)", >+ "host": "127.0.0.1:8800", >+ "referer": "http://localhost:8800/referrer-policy/generic/subresource-test/script-messaging.html" >+} >+ >+ >+PASS Script is responding with HTTP headers >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/script-messaging.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/script-messaging.html >new file mode 100644 >index 00000000000..0a93266e2c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/script-messaging.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- TODO(kristijanburnik): Remove subres. duplication. Reuse a template. --> >+<html> >+ <head> >+ <title>Script messaging - cross-origin Script request</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Script messaging - cross-origin Script request</h1> >+ <p>If you can read JSON encoded HTTP request headers of the Script below, >+ the messaging works as expected.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/script.py'; >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaScript(url) >+ .then(function(message) { >+ var pre = document.getElementById('received_message') >+ var headers = message.headers; >+ pre.innerHTML = ""; >+ pre.innerHTML += url + ":\n\n"; >+ pre.innerHTML += JSON.stringify(headers, null, 2) + "\n\n" >+ assert_own_property(headers, "host") >+ assert_own_property(headers, "connection") >+ }); >+ }, "Script is responding with HTTP headers"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/w3c-import.log >new file mode 100644 >index 00000000000..10e150623ae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/w3c-import.log >@@ -0,0 +1,25 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/area-navigate.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/attr-referrer-invalid-value.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/fetch-messaging.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/iframe-messaging.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/image-decoding.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/link-navigate.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/script-messaging.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/worker-messaging.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/xhr-messaging.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/worker-messaging-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/worker-messaging-expected.txt >new file mode 100644 >index 00000000000..761f133d8a7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/worker-messaging-expected.txt >@@ -0,0 +1,19 @@ >+Worker messaging - same-origin Worker request >+ >+If you can read JSON encoded HTTP request headers of the Worker below, the messaging works as expected. >+ >+http://localhost:8800/common/security-features/subresource/worker.py: >+ >+{ >+ "accept-language": "fr-fr", >+ "accept-encoding": "gzip, deflate", >+ "connection": "keep-alive", >+ "accept": "*/*", >+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko)", >+ "host": "localhost:8800", >+ "referer": "http://localhost:8800/referrer-policy/generic/subresource-test/worker-messaging.html" >+} >+ >+ >+PASS Worker is responding with HTTP headers >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/worker-messaging.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/worker-messaging.html >new file mode 100644 >index 00000000000..c85cfca5c39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/worker-messaging.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- TODO(kristijanburnik): Remove subres. duplication. Reuse a template. --> >+<html> >+ <head> >+ <title>Worker messaging - same-origin Worker request</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Worker messaging - same-origin Worker request</h1> >+ <p>If you can read JSON encoded HTTP request headers of the Worker below, >+ the messaging works as expected.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/worker.py'; >+ var url = location.protocol + "//" + location.hostname + ":" + >+ location.port + urlPath; >+ return requestViaDedicatedWorker(url, {}) >+ .then(function(message) { >+ var pre = document.getElementById('received_message') >+ var headers = message.headers; >+ pre.innerHTML = ""; >+ pre.innerHTML += url + ":\n\n"; >+ pre.innerHTML += JSON.stringify(headers, null, 2) + "\n\n" >+ assert_own_property(headers, "host") >+ assert_own_property(headers, "connection") >+ }); >+ }, "Worker is responding with HTTP headers"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/xhr-messaging-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/xhr-messaging-expected.txt >new file mode 100644 >index 00000000000..444e8f68dc2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/xhr-messaging-expected.txt >@@ -0,0 +1,20 @@ >+XHR messaging - cross-origin XHR request >+ >+If you can read JSON encoded HTTP request headers of the XHR below, the messaging works as expected. >+ >+http://127.0.0.1:8800/common/security-features/subresource/xhr.py: >+ >+{ >+ "origin": "http://localhost:8800", >+ "accept-language": "fr-fr", >+ "accept-encoding": "gzip, deflate", >+ "host": "127.0.0.1:8800", >+ "accept": "*/*", >+ "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko)", >+ "connection": "keep-alive", >+ "referer": "http://localhost:8800/referrer-policy/generic/subresource-test/xhr-messaging.html" >+} >+ >+ >+PASS XHR is responding with HTTP headers >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/xhr-messaging.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/xhr-messaging.html >new file mode 100644 >index 00000000000..dd48dec8e6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/subresource-test/xhr-messaging.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- TODO(kristijanburnik): Remove subres. duplication. Reuse a template. --> >+<html> >+ <head> >+ <title>XHR messaging - cross-origin XHR request</title> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>XHR messaging - cross-origin XHR request</h1> >+ <p>If you can read JSON encoded HTTP request headers of the XHR below, >+ the messaging works as expected.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/xhr.py'; >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaXhr(url) >+ .then(function(message) { >+ var pre = document.getElementById('received_message') >+ var headers = message.headers; >+ pre.innerHTML = ""; >+ pre.innerHTML += url + ":\n\n"; >+ pre.innerHTML += JSON.stringify(headers, null, 2) + "\n\n" >+ assert_own_property(headers, "host") >+ assert_own_property(headers, "connection") >+ }); >+ }, "XHR is responding with HTTP headers"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/__init__.py b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/__init__.py >new file mode 100644 >index 00000000000..a6834b8285a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/__init__.py >@@ -0,0 +1 @@ >+# This file is required for Python to search this directory for modules. >\ No newline at end of file >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/clean.py b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/clean.py >new file mode 100644 >index 00000000000..715e1d6ae4b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/clean.py >@@ -0,0 +1,35 @@ >+#!/usr/bin/env python >+ >+import os, json >+from common_paths import * >+import spec_validator >+ >+def rmtree(top): >+ top = os.path.abspath(top) >+ assert top != os.path.expanduser("~") >+ assert len(top) > len(os.path.expanduser("~")) >+ assert "web-platform-tests" in top >+ assert "referrer-policy" in top >+ >+ for root, dirs, files in os.walk(top, topdown=False): >+ for name in files: >+ os.remove(os.path.join(root, name)) >+ for name in dirs: >+ os.rmdir(os.path.join(root, name)) >+ >+ os.rmdir(top) >+ >+def main(): >+ spec_json = load_spec_json(); >+ spec_validator.assert_valid_spec_json(spec_json) >+ >+ for spec in spec_json['specification']: >+ generated_dir = os.path.join(spec_directory, spec["name"]) >+ if (os.path.isdir(generated_dir)): >+ rmtree(generated_dir) >+ >+ if (os.path.isfile(generated_spec_json_filename)): >+ os.remove(generated_spec_json_filename) >+ >+if __name__ == '__main__': >+ main() >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/generate.py b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/generate.py >new file mode 100644 >index 00000000000..a59770ffa26 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/generate.py >@@ -0,0 +1,68 @@ >+#!/usr/bin/env python >+ >+import os >+import sys >+ >+sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', '..', 'common', 'security-features', 'tools')) >+import generate >+ >+class ReferrerPolicyConfig(object): >+ def __init__(self): >+ self.selection_pattern = '%(delivery_method)s/' + \ >+ '%(origin)s/' + \ >+ '%(source_protocol)s-%(target_protocol)s/' + \ >+ '%(subresource)s/' + \ >+ '%(redirection)s/' >+ >+ self.test_file_path_pattern = '%(spec_name)s/' + self.selection_pattern + \ >+ '%(name)s.%(source_protocol)s.html' >+ >+ self.test_description_template = '''The referrer URL is %(referrer_url)s when a >+document served over %(source_protocol)s requires an %(target_protocol)s >+sub-resource via %(subresource)s using the %(delivery_method)s >+delivery method with %(redirection)s and when >+the target request is %(origin)s.''' >+ >+ self.test_page_title_template = 'Referrer-Policy: %s' >+ >+ self.helper_js = '/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub' >+ >+ # For debug target only. >+ self.sanity_checker_js = '/referrer-policy/generic/sanity-checker.js' >+ self.spec_json_js = '/referrer-policy/spec_json.js' >+ >+ self.test_case_name = 'ReferrerPolicyTestCase' >+ >+ script_directory = os.path.dirname(os.path.abspath(__file__)) >+ self.spec_directory = os.path.abspath(os.path.join(script_directory, '..', '..')) >+ >+ def handleDelivery(self, selection, spec): >+ delivery_method = selection['delivery_method'] >+ delivery_value = spec['referrer_policy'] >+ >+ meta = '' >+ headers = [] >+ if delivery_value != None: >+ if delivery_method == 'meta-referrer': >+ meta = \ >+ '<meta name="referrer" content="%s">' % delivery_value >+ elif delivery_method == 'http-rp': >+ meta = \ >+ "<!-- No meta: Referrer policy delivered via HTTP headers. -->" >+ headers.append('Referrer-Policy: ' + '%s' % delivery_value) >+ # TODO(kristijanburnik): Limit to WPT origins. >+ headers.append('Access-Control-Allow-Origin: *') >+ elif delivery_method == 'attr-referrer': >+ # attr-referrer is supported by the JS test wrapper. >+ pass >+ elif delivery_method == 'rel-noreferrer': >+ # rel=noreferrer is supported by the JS test wrapper. >+ pass >+ else: >+ raise ValueError('Not implemented delivery_method: ' \ >+ + delivery_method) >+ return {"meta": meta, "headers": headers} >+ >+ >+if __name__ == '__main__': >+ generate.main(ReferrerPolicyConfig()) >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/regenerate b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/regenerate >new file mode 100644 >index 00000000000..e6bd63519b3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/regenerate >@@ -0,0 +1,3 @@ >+#!/bin/bash >+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) >+python $DIR/clean.py && python $DIR/generate.py >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/spec_validator.py b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/spec_validator.py >new file mode 100644 >index 00000000000..70656db25d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/spec_validator.py >@@ -0,0 +1,173 @@ >+#!/usr/bin/env python >+ >+from __future__ import print_function >+ >+import json, sys >+from common_paths import * >+ >+def assert_non_empty_string(obj, field): >+ assert field in obj, 'Missing field "%s"' % field >+ assert isinstance(obj[field], basestring), \ >+ 'Field "%s" must be a string' % field >+ assert len(obj[field]) > 0, 'Field "%s" must not be empty' % field >+ >+ >+def assert_non_empty_list(obj, field): >+ assert isinstance(obj[field], list), \ >+ '%s must be a list' % field >+ assert len(obj[field]) > 0, \ >+ '%s list must not be empty' % field >+ >+ >+def assert_non_empty_dict(obj, field): >+ assert isinstance(obj[field], dict), \ >+ '%s must be a dict' % field >+ assert len(obj[field]) > 0, \ >+ '%s dict must not be empty' % field >+ >+ >+def assert_contains(obj, field): >+ assert field in obj, 'Must contain field "%s"' % field >+ >+ >+def assert_value_from(obj, field, items): >+ assert obj[field] in items, \ >+ 'Field "%s" must be from: %s' % (field, str(items)) >+ >+ >+def assert_atom_or_list_items_from(obj, field, items): >+ if isinstance(obj[field], basestring) or isinstance(obj[field], int): >+ assert_value_from(obj, field, items) >+ return >+ >+ assert isinstance(obj[field], list), '%s must be a list' % field >+ for allowed_value in obj[field]: >+ assert allowed_value != '*', "Wildcard is not supported for lists!" >+ assert allowed_value in items, \ >+ 'Field "%s" must be from: %s' % (field, str(items)) >+ >+ >+def assert_contains_only_fields(obj, expected_fields): >+ for expected_field in expected_fields: >+ assert_contains(obj, expected_field) >+ >+ for actual_field in obj: >+ assert actual_field in expected_fields, \ >+ 'Unexpected field "%s".' % actual_field >+ >+ >+def assert_value_unique_in(value, used_values): >+ assert value not in used_values, 'Duplicate value "%s"!' % str(value) >+ used_values[value] = True >+ >+ >+def assert_valid_artifact(exp_pattern, artifact_key, schema): >+ if isinstance(schema, list): >+ assert_atom_or_list_items_from(exp_pattern, artifact_key, >+ ["*"] + schema) >+ return >+ >+ for sub_artifact_key, sub_schema in schema.iteritems(): >+ assert_valid_artifact(exp_pattern[artifact_key], sub_artifact_key, >+ sub_schema) >+ >+def validate(spec_json, details): >+ """ Validates the json specification for generating tests. """ >+ >+ details['object'] = spec_json >+ assert_contains_only_fields(spec_json, ["specification", >+ "referrer_policy_schema", >+ "test_expansion_schema", >+ "excluded_tests"]) >+ assert_non_empty_list(spec_json, "specification") >+ assert_non_empty_list(spec_json, "referrer_policy_schema") >+ assert_non_empty_dict(spec_json, "test_expansion_schema") >+ assert_non_empty_list(spec_json, "excluded_tests") >+ >+ specification = spec_json['specification'] >+ referrer_policy_schema = spec_json['referrer_policy_schema'] >+ test_expansion_schema = spec_json['test_expansion_schema'] >+ excluded_tests = spec_json['excluded_tests'] >+ >+ valid_test_expansion_fields = ['name'] + test_expansion_schema.keys() >+ >+ # Validate each single spec. >+ for spec in specification: >+ details['object'] = spec >+ >+ # Validate required fields for a single spec. >+ assert_contains_only_fields(spec, ['name', >+ 'title', >+ 'description', >+ 'referrer_policy', >+ 'specification_url', >+ 'test_expansion']) >+ assert_non_empty_string(spec, 'name') >+ assert_non_empty_string(spec, 'title') >+ assert_non_empty_string(spec, 'description') >+ assert_non_empty_string(spec, 'specification_url') >+ assert_value_from(spec, 'referrer_policy', referrer_policy_schema) >+ assert_non_empty_list(spec, 'test_expansion') >+ >+ # Validate spec's test expansion. >+ used_spec_names = {} >+ >+ for spec_exp in spec['test_expansion']: >+ details['object'] = spec_exp >+ assert_non_empty_string(spec_exp, 'name') >+ # The name is unique in same expansion group. >+ assert_value_unique_in((spec_exp['expansion'], spec_exp['name']), >+ used_spec_names) >+ assert_contains_only_fields(spec_exp, valid_test_expansion_fields) >+ >+ for artifact in test_expansion_schema: >+ details['test_expansion_field'] = artifact >+ assert_valid_artifact(spec_exp, artifact, >+ test_expansion_schema[artifact]) >+ del details['test_expansion_field'] >+ >+ # Validate the test_expansion schema members. >+ details['object'] = test_expansion_schema >+ assert_contains_only_fields(test_expansion_schema, ['expansion', >+ 'delivery_method', >+ 'redirection', >+ 'origin', >+ 'source_protocol', >+ 'target_protocol', >+ 'subresource', >+ 'referrer_url']) >+ # Validate excluded tests. >+ details['object'] = excluded_tests >+ for excluded_test_expansion in excluded_tests: >+ assert_contains_only_fields(excluded_test_expansion, >+ valid_test_expansion_fields) >+ details['object'] = excluded_test_expansion >+ for artifact in test_expansion_schema: >+ details['test_expansion_field'] = artifact >+ assert_valid_artifact( >+ excluded_test_expansion, >+ artifact, >+ test_expansion_schema[artifact]) >+ del details['test_expansion_field'] >+ >+ del details['object'] >+ >+ >+def assert_valid_spec_json(spec_json): >+ error_details = {} >+ try: >+ validate(spec_json, error_details) >+ except AssertionError as err: >+ print('ERROR:', err.message) >+ print(json.dumps(error_details, indent=4)) >+ sys.exit(1) >+ >+ >+def main(): >+ spec_json = load_spec_json(); >+ assert_valid_spec_json(spec_json) >+ print("Spec JSON is valid.") >+ >+ >+if __name__ == '__main__': >+ main() >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/w3c-import.log >new file mode 100644 >index 00000000000..c58b111da90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/w3c-import.log >@@ -0,0 +1,21 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/__init__.py >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/clean.py >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/generate.py >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/regenerate >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/tools/spec_validator.py >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/unsupported-csp-referrer-directive-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/unsupported-csp-referrer-directive-expected.txt >new file mode 100644 >index 00000000000..7895b423cbf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/unsupported-csp-referrer-directive-expected.txt >@@ -0,0 +1,11 @@ >+CONSOLE MESSAGE: Unrecognized Content-Security-Policy directive 'referrer'. >+ >+Referrer Policy: CSP 'referrer' directive should not be supported >+ >+CSP used to have a 'referrer' directive to set a Referrer Policy. This directive has been removed and should not be supported. >+ >+Running... >+ >+ >+PASS Image has a referrer despite CSP 'referrer' directive >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/unsupported-csp-referrer-directive.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/unsupported-csp-referrer-directive.html >new file mode 100644 >index 00000000000..190aa5212f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/unsupported-csp-referrer-directive.html >@@ -0,0 +1,32 @@ >+<!DOCTYPE html> >+<html> >+ <head> >+ <title>Referrer Policy: CSP 'referrer' directive should not be supported</title> >+ <meta http-equiv="Content-Security-Policy" content="referrer no-referrer"> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <!-- Common global functions for referrer-policy tests. --> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js"></script> >+ </head> >+ <body> >+ <h1>Referrer Policy: CSP 'referrer' directive should not be supported</h1> >+ <p>CSP used to have a 'referrer' directive to set a Referrer Policy. This directive has been removed and should not be supported.</p> >+ >+ <pre id="received_message">Running...</pre> >+ >+ <script> >+ promise_test(function() { >+ var urlPath = '/common/security-features/subresource/image.py?cache_destroyer=' + (new Date()).getTime(); >+ var url = location.protocol + "//www1." + location.hostname + ":" + location.port + >+ urlPath; >+ return requestViaImage(url, null, 'always') >+ .then(function(message) { >+ assert_equals(message.referrer, document.location.href); >+ }); >+ }, "Image has a referrer despite CSP 'referrer' directive"); >+ </script> >+ >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/w3c-import.log >new file mode 100644 >index 00000000000..3f8fb2a841d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/w3c-import.log >@@ -0,0 +1,32 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/iframe-inheritance.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/link-rel-prefetch.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-and-values.html.headers >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-combined.html.headers >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-invalid.html.headers >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers-one-unknown-token.html.headers >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/multiple-headers.html.headers >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/referrer-policy-test-case.js >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sandboxed-iframe-with-opaque-origin.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/sanity-checker.js >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/generic/unsupported-csp-referrer-directive.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..990efabc695 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..42be3b8892e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7b0224d6896 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1fc873a454c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..bf4894dea18 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cfd26dbe08f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..23f9b1323b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..cbbccd6cd4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..77023f59812 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6253edf6c97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..0e201a2d8eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..339799d6443 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6b4f10d4c78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..346326f9245 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dba505c6144 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..532bd8ecbaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..91119cc9eef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d662856c0bf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ead412f1bdb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..25d9de531ae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..facf9d11f4f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..90045dee569 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9cd52ad2acd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e5eb83749cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..de2d44565f7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..51c7beb7690 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3a57294b472 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1898e934ae7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..06434ccb743 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6d2961487bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ef4a55dadf7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9d80f4b1e72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5473f507865 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..eaa41450e75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..fc18b7eb3cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..abad30f10ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..cecec56b0a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f5e284dbdf2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..24de36789e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8258484417d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..33f88211bd7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4a6c0059a28 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a8585b702d3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ef4c62e3562 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a12910a53b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..88be539d01b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f3eed251927 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e23f6addf09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..30bd98040f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..15be1dbc74b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2dc6ba0c9b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ca9746db02d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ee133164489 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..350e1f493d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e19bdbeb872 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2e1190bda4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f62307416a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d4cfe7c6326 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c77c6e692b1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2ec4f165d6a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..66049331455 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..29b2e708b94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c2a4f77c871 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..cf70132fe29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f7c4e35e2aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..56fcbe9ef90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..73303d0f876 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..7f3a6b86945 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0ee63786187 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..68aa70732ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..4ca9775d6bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cb0ba99fbae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e9e00bbe397 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f19ff96c945 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4cfa483f47d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3859466c7ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..23fe26c9ab5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..74e8b088aaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b8460ce0c2c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..db8daa3957f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7336a6c0830 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dd09c643664 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5093a462d0f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..42292ba0590 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9b4cf4a4c4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..493fad2ae30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3bbf0635347 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..042f3429b78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..02dd4ec339c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..650beec01f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a644e8843de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..299fc9f6267 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..32eda6ad9f2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d583de98a49 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ad2f7e9f51d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..df9e3db0f83 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d0d0d2bf01b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f034708abaf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a0922a104e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a5f352f6fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..4c8f33a6334 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f5fa86b8671 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..24a1bd0c1bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..41219e4b5f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..84a1a3575ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..34a29129bb4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..6c1bca655a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2c09018f548 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..70a49a78f94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3f15616a04e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..df0055ad107 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bc0d7e076c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..e0bc023c1f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..18dac7aee43 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..99d7177f0e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b841182703f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..52f327efa28 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dcc397371c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..dafb2477b9f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5ea3027f36d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1b59a490d82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a029a7eae14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2c6683edc30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..96d736a4c00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..06966301d0a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6f059a14ef4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c581e856eab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..26a74ef2fdd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c9b7ea2a151 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e0467612699 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..461a108d180 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..497d598316f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a67a7126c17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..caa18cc0690 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2f29f645db7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..539214d8b31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5d9ba45af0e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bd205111575 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3dfc682fbba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a8305f77a29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..85dfb1ffe4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ca550793318 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..387257aed31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..522fe5517f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a54dd6a9a4b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..163d9e7d4ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8268d75de1b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bcc516b2c6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..aaed1cd1248 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d741610a955 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..88eb03212cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..eff18098e71 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..77bff448238 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5dd469e812f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..79c395728ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6b177349069 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..73f6ee6e59b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..7ff6788142d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ef0ecdd3b5e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..001552045a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ad55af9e009 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..76c605f652d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7818a26a583 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..cb5f93ece0a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0f649206d59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0ea5f65fff4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..118262cccd2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f2419f96c20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d84e3692a8c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..df071559f7b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e3dc8134aaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8fbc71adde0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a741bbce667 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..45b3c386f61 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..06995e20501 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..66b527001be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b28cec51402 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5a1fb0e893a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c22ac9819c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b1983b59e3a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c0cd60fa55c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..aff550f0dcf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3980fcd5c37 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ac464d80630 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..be319727156 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9e097c07228 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b0d981232d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..dc1758ab702 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3b9a4a0b13a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..47e34206d0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..eccaeafc502 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..41d85c80e4f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6af2c171ca0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5d608aa5fce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..01e02fc82fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..604e99ccadc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..4c59595e060 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..60ae7bb5a2e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..38365366aac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..147088b7b2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4ca43c3be29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2297f42baba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f655ea4eac6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c4146650012 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3e436402f54 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..21d84a1deb1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..63923d7af72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f614f775731 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..15b99758704 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2356c2028f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..243f04fe371 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c5377a40030 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1778371edb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ded57c10f2f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ce61e3e124f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d9e669d2d6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..89a0e8103c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ab594bdde60 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e9ac2c4a459 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e9795458463 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c515745a002 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..540ec7cc4ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a8968bdbb85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..85f9acb33fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f6823b40ebd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0efcb5c7523 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..56db3510a7a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6de3063c7c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..969c31bc65a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..1e942bc9649 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5a97f1ac8f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2f7b8143471 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d8b7367afd3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aaef50809fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8708b00c608 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..970122cf57c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4dc55632e5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..442fd0263ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..1d9ae9943a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..38176a72d30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d5be4cdd187 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d7dd197d6a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1c148b3f1b9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..df30d7bbbac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d3d58cdd055 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d393943a8f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..178effac3a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2a2832c603c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9bd8a0f4dc8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..31c3ff613e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d749b1fb534 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..10dda5e0979 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5427c30120d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6ea648d497d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9ec444b650b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7baebce3242 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6452e189535 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..21f01746d5e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7db65da50fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2eea5bce5c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0aab5b28a96 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..add63200fd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..eb402eb930a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..539407ea7da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dd6ceec1fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d8f2cc325f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a9c5a0d8cfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..611b5a31448 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..770aa2196c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dbecc38b700 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..344b7222be3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..cbd81ef8c9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..27e58271bf7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..90e62d99f4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..04a71c73283 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d5a014b604 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0fa0241dc63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..666f273d48e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..acac1613cbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f2f22d08c67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9e0a6320302 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e5998004e24 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ecccd5f1183 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5573699066a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0a5c18cb7c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..32614d71cd7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5cfb653e611 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fe1d3ec5f58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2bf92bd04c0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..4467c6fc86e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d6fad72b26f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..85a3e108f5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..20c6e672845 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9e9339d208f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bdf5fb09e5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..61c183df1e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f568a4203aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3f219f9bcfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..94a55f631d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e156df192b3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8e0c78a113c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..6572626f169 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cfae0c093fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..195c6f579cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..052c4f3071c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f9d404e0928 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..76bcb2334ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..7a639efc055 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..236c7a9016a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9da789454f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..35ea0233668 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b91b7ea7a5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2e3092ec220 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ae707095f09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b1dfdb61cc7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..64a6b468944 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5efe260b42e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d00b67b6c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6d0573fa6a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..46d4d6f770f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e9cf48520e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2fe5ebd809b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5c177baeeee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..507ae234f6e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9db93cb3465 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..48ba4fbec2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..121cb78c6c3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..49ed9bc9548 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..afe482af237 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..f2152da955f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer-when-downgrade >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b56e6e47890 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dcf1f10a491 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..0c013c4f0db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b5d74f22caa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a942d320a6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ce637b53eb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2dd403c22b6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..982a7f390d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d48760a422c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b764e9fe975 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3e34c73a83f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..06a9d7d4a72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2b06c73a681 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4a45e72d373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a608e3ae09e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2a11765ef63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1b43cc6356d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d6e741e3f62 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..49d170b92f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e57224b5c86 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c39a1430b20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..566d5415d72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..fe002ff77a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3b97f957b2f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b62e6d5a93a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f880dd5e16f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b67f4397f7a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ba455461197 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..131a07f19ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..19fdfe685f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3a8639de190 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..54320d08bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f6e26655cc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3c58eca77b9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..37bceadab92 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6e2a592ff5d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1ba6846a521 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..609cab7fe95 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..cd5c2c08b4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2a38027a66f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..59f6d6e3e7d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..dd579ccc99c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..be6126c3cb0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ff94f3db9de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b5a81887911 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2934472c4c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2265bdd3088 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..27d3900a4a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7fbb737a2ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..52222354ba0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..912f9992422 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1bce165bef0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bc91342f237 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..42b78741757 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..db99a994602 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..05c152ea136 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..421d4d9e09f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f696eb9c396 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..14bc1da7e2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..397ad2d6833 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..05cee74ade0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2b399804c98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3f04ea7736c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f0c84a3096f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..11391383837 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..77605609762 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7553565a2c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a988c656d5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..59a8041e699 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..16a86d54d10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c7ede2d1410 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..08e3f97c09e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..52f19205efd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5c98a00032c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..e3ca9c6ab65 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..df82ec975d6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5fc3169e193 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..84654cab5dc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d6ffc8317ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2d14c83bae3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c56716ebd31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..98be0c5a24f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..015de53de39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..22ebf6e76b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b09e1ead927 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dc7735a1b58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5eaa959e054 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..99d094775e4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..acea11340c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..132eb3cdd93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3f1136a349f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..44e7bdde1c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5a0aa248a97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..417a39e2655 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bdfe799e185 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..02c61798094 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..83cd7277a1a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a514e63656e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9156260a10f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8db943d702f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1a9c7a93359 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9f232627d47 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7c5b2b1449e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bd94fe57b2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ddcc0e02cd8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f6fde923dde >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..220cf31bdfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..154aca212a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7be9ec8a04d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3ac3bccf5c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b171edf427e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c186c38ddaf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d0037d4b36f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..45ccc753e08 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..49976923ead >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d924d233983 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f2940a424d1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b9cb6dcea2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a8ee8b3995a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c4fe80639d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9e2e34d7d93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0ba732dbc46 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c6915f8341a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6c16440cf5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5fc2b605d20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e5d0b8f3d10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..69fa0e7317c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..eead4be52b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6a6d1d46e28 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..721fe5b66cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7ca9ebf0a55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8694c941d27 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..81bdec4508e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e08ba26d84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..19fabf6fc37 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c31f7c4d58a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..36125e3bb91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e3909a54f80 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6bea0ecea31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..98518f8ac84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..754bb727a07 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..91647d504f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7f47c4dbb6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..11df0d69acc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4fae4266e90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a12343aa07f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..cb2882b62f7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a96b215be60 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c6c2bf36c9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..bc28f2bf84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c954153a999 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..59b3752c8ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..233ffad4859 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d9cc95a46a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..af9f72d5bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ee95a6ca6fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a227ad2f3d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..76a388b62df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3a0a025e72d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..61d04a48dc0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8fc43fc7ff1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..decdcef4b9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0914ffc247b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d6277eb34db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..bf1e8ec167b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ac69330ad00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..37f60a4a1fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2aed2d235a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a64682ff623 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..25011a38355 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..80ce3783597 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..56f123b2bb4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ec7c61f8243 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..66b6c28112d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..83e1eabf9da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f166b2b08fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1b67ec6aca1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..00369a3f0f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7addea4045c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..035a8f30206 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e2a656fcc43 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f52f9ba1a78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..912a9a13dbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4eae44dc7b0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0a1d3260c2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..4a329a1f3de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f7b12493591 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5fc5e7b31dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..8de2e24297a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1d3d452a8bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1e6778446ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c6c75eaebd6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a7636548b6e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..15fa08d781c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ee046e2aa40 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0665dbe10fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..97d706d1481 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b65e1a448a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1ac70a5e61b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d8438b499f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c216046a1e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c37b5652332 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..cce2a4ad651 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c7844b8d79a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..42159c2d629 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4c06d4b2d52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..94749a5e4e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6d8f2de5bc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..af917847891 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3bfc3c54616 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="no-referrer-when-downgrade"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer-when-downgrade", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..91cc27d8bd0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer-when-downgrade/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..196a8ce1088 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..15d6d703128 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b91e8da183c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dcd6f599e57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ace01a8c14f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..07cf1bd0421 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d4ac880d437 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..87a3d2c6b18 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ed9e08bd54a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d024b6e9622 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..07bbfd3ca36 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d88f7002f00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bc7404a7f21 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f881b1fa904 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..05c709a6bfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..276cc390cde >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..019d330457e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a3de8ff1d41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a9425007829 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..57670bc8697 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ffa88f8bfa6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4c25872a7de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e4efa6eeff3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..db914a60525 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..cb7036888dc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..a3b162e0b1f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e410847ad09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8d8f85ddcf5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..81fe68ccce9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d1f6577e1a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4939550be91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..59aa6a99b70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4ba45f04e7d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2692c6e3052 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..429fbeb81fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9bfa7b0eb9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..38bc67f7d8d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..3c06d739857 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..289d5fc8282 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3a4b87b4607 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d17bf1c93c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2c0b67f2d97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bac5d240d0f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bee60557c65 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..279a77761cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..767f9e4d50e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..4d4e09bbca4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..43f0c191748 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e4622f69faa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7d78a9e44e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fb77eec6ebd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e331d128212 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..2ab167d0ce2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..edac7ca92eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8124fd68587 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..62a67844560 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..df39fa39ed6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d08e5b96f02 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1bf40e66f2f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..256f9764cd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..373be260eaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..549851abf84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d8397c1ffa9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1dbf45fda3c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c57951a0a2b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d82ea0add2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9759504043d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e7a22774a22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..156ea36c1b3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3fca2c64518 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..12b8220736b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dd4c3cb4833 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a4431dea1ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..47e76c0a1e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9885e612f89 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..06038e6d89b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..67e3d38c17e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..36a36e1069b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..712c61d3ae8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..184a637ed68 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1c8567d79ae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7d0f6e69c5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e7b04e82ed7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d8c2f4f52d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b3f610a1ac6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..42977a1babd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..94dc691118b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3ccd66cd5a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..846b585792e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e66940048fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5775f0f99fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..be8d5997fff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..69282b0dfc1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..924d55ab857 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..629f4649ccd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7c3777619c3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6304b27e041 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..ff78c96c8d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6c54d221010 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8c6eba69cd6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a2d94af9139 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9ca3e52977e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6d13dd4abe3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..984eb926b7a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..249f7f3bd61 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5dfd860205f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..5cfcd569d69 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c600669bca4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5c844a15897 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b8fb99174fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b6b05b1a527 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..22f9a2e543c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9f0f9884e5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e91cd9a71c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..818f357776c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..44044767d1d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5eb13963f61 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f96929a057f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..67fa569157b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8c85ab72223 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..115bd730b05 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..0ac870c47c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8951510d96b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a48ad6185e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..af7827fed49 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8452adde10f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..638faa84014 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..0bead7943fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..69032cc2dc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..cf8991f3949 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..27018f7b550 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..293f48e3098 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..fb7c861405c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..995e8e10a88 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..65b7c8a80ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6f670df2273 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..6fec6ccca28 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..11fa426408b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..13dda576ae3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b2728cfa0c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cf02a3c2824 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..659ab14cc45 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..23b325b573d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..02af0c8a991 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9f4d467bbe5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b24d53bd2a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d592cb6defc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a2ae119bd6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ffb70e5b701 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b58d2282b06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..338a3f8d0ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a0ef0088a26 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d227f628fdf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0a84f1a9600 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..6022c1a8927 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2d7e29294fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3ee6f501cd6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..affaa0c387a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..de2c9082adb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e8063d2b5f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4232b25a0f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d091e1e271d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..da3561fef99 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..c0addfbad60 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f0ce73b4fe6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..49ac02229fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..2595ff89e78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1e9b8960fa2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..261c24e901e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f5805796344 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1a7f9cbabe6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..229f4e2721a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7faa8adac37 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f24c948bef4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3ffddac810c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..d0ee98496e3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d50813d4c2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..724bdb4c10b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3ad094a328e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..72f65195a8c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..076d886eafb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..50f2649d3f7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3549748f00e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a759aa821cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..07abb8e5cbf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..48ca41d3a06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dd9ea8f0c6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..964449d2663 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..50c402e48f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e6b9304869b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..94bcc64d46e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6b1d14aee82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7886f6bc602 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..34079bf8986 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..03d12b3cd62 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..152d07908fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0ca38518196 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1b1cb788197 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..792023470a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..366db4e4be7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..acf631ffe71 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c5783028d41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f24392c0915 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..92cf8801a93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..fc33178b588 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7142ad4f6ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0be7c137f0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4f892f756fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0fe52855874 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..58d177fbee9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8db2333882c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..733db4a841e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..828ad836372 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..06413f3fc56 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..81b4f4d86fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7cc3537a5d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ba3478c92d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..155d48f43a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eb8a36d72a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..01db265dd13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..560c9a1227d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8fb8d959d02 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b0aab9e7609 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..a677f73429b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fbe83ca41fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..908769cb0f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..97e792bcfb9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9323a2c188a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..06a8c32a387 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ae8cdc91efb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ff2810112f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3306b6cc52d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..df52f3058d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bc2d7e24c29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9efb27bf80f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4c3c0706090 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5a5cd94bbad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8e49f84c974 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7a9ec93295c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5e777ece71b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..fd92e53f9a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..71bc6bf37af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bfa0fe785bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..daa9f9459f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a37cc7545f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2442682f8c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d79fa97a3dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..420d190d6c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..63a844e396e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..be951c6fc98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e5509fa0184 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8584af3bc8f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..093f8b26703 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c7b2fdf2e35 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..929e41d2060 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..12bec56f19f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..d3c9121b537 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..da52f2ae4ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3d1c9ce51cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c4bffccd640 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f501af6e370 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b9673ffe0af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e6f13a4cb31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..464cfb67462 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..50a9990374b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..dd3faa6b87c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b6171e93b94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1c33c4dd6a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1ad2fbdd20f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e7da98b9e14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4d5523db823 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..295fe6e58d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d81e2cec35 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..44c770b25fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bacdc0b2183 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..16e9d7c4937 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..79944e321af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..54ae74c6b30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f690ff1b36f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d8bd866592c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9826add65df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b7870fb08be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1dea76a28bf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..305ba094ce9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3d7b11aa6c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9ffb13b05a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0c85bf84eb6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c9353a011ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..010a114ba7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..1f6c3bc7ebf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bab36a22d5d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..04ae64fb6c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..af59665cf4e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a0a60b5290b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..43482de7c89 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..fee454c3d55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..39ee8786352 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e6fd9776320 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b4b8a21a9d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ec312bb627d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a2e818e3fc2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1c3f86a913a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c7878e4f20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dea1899aebd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7c93de3d5e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2d3f2204db9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e07e200920d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..4b89570dbaf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..692e831de61 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..acdc687def2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..fc779aa8652 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f269340fa97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9090b5a758f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3fe0152390f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..16fe9a4f5ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2748989d190 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..edcf827aa2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d6009296887 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2805b5fb381 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..34660256411 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..300a0f87b50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..09f0c845362 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..469d8f70b05 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..86123e11496 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d81e19b59ae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e71021bade6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..db78ada603e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2ea24a2c949 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..840a1f7a074 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..9b531426e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: no-referrer >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..af1dbb3efb0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b564872eedf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..374902ef366 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f71c0df1f86 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6c347a00da1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e2c2cd4dd56 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..018c9295548 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1fae15df701 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..9f17129a4b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7668b80fea0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4336ccaf0e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..5e5bd63da04 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..91e54190eef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7863b005e32 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f94b5d59213 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d56ad00cf15 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..32f84650d6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..ca07e207067 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f4dc61ce416 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..416a816b192 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..df2429b6a25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1e2badf77b9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9998d111942 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f103376eb3d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..825f7fb02fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7652e136ea9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2af6647bfc7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f5f78b1f3af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..02720db4c7c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..90148accbdf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aa881241d0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0737f6d6096 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4c6847caf27 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d133245d04 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d7582d7896a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..1f21cefa068 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..acaf97cc0cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..66436e815d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b56e5b8524b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..085dfa3d7fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..502fd20c371 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6b9544a0dde >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6580deb2254 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a637c2db57b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..6202549dcc2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c966a13bc01 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0da37694431 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d031329a3f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..05b061cc81c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2cfbbdeccd5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..6e46166057e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d82792ad54e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..94b5f409518 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..95e8de45caa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..50c5dbe302e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7a48532386b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f742f21d8f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..49db1c838d6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f39c34e7ac0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0cfc6ecefb6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d2be3d9f2e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c939aedb2ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..be708f879ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e74ca272dba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..af129dd2811 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..645c7f0bb98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..563fa6d23e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..58f2f07055c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e46169ce4bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..884b6a2c9f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..572bd7f361b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a419537cd50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c973249f95a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dd44e150580 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..c9b86740595 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0f404868350 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0be9910c25d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f68e12df619 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cb5fbbf2d27 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a718d338816 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7f8c3fba5d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cee8fdfcfb9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..87c6e735844 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..fe517279177 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c99d1d4ab8d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5be018b42a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e4e1599e76c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4210cd8c6f2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8a7b0f09452 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bdc96d0383f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b7f192d15fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7f4c11a0bef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..58cdf01e3ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..40199e6dac7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5657751b7da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..cd10a5c9fe8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..35a4b818e50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9153c16ced1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..dce6ced3f82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3f887c11821 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e8f7305209b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..16df4a1a945 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..64729be3f52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2477eb8d2f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..0f99427b672 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8f809ea1b4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6182a5bb98a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e53f5b42068 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0875cc83994 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..498ee92573f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..08978a33c3f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..09c7db38717 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a362cf1419f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..316011bef19 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..92471680cee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b7e3bf68d6c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..410956b9fe4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..37982408df7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..cd419d5992d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0318305cd2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..501420e98dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b124af412aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..a5a1cc939db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f8fd3bbb29d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..56b784fa70c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..751da7c02a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7cf992cf541 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..99091710937 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..56fa33cde33 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..110e44c8e93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b32b07f141d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..eebb7a97223 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c411033b805 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..61401ab1a29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ed3608e5d24 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8c62eb16555 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a567b870670 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..483edb33208 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f3c5cc107d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ee0f19a8371 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ddb4d1a41e3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0f64c3b5be9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..071bfa80894 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c30a50e1895 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..032f181fa3d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b65b864aaa9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..90ea1080614 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2b3f2d5f06d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8e884cf581e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ce4d4606e11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..717333b2403 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5ed57754bca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..7c92e52d2bd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7f52a33bed5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8bea2cb4234 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7ad39cfa2aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..957797f266c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..13b6d617e03 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f62c5d870ae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e0f22efc6ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4ffc812f824 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..517734843cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2aed70d4e76 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7ba7e127c48 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..6d14ffa0768 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2afc4e00510 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..61a9c70925b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ca7c37392e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..25bb208a8c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c1e297a3692 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e5c3b9b584e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..afdc133ec1f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c0595449b23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a80f646780e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ee229a108da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..85af67651a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3a08e3fdebe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..faef4f5206a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1fe30bd4f14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..99cdbf23fc6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bea178797ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b9703d1202d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e6b82d9a47d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e7377acfb59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7beced7913e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..518d9246bd0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..128d2c4b723 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..df0b5cec2b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..160591e9286 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c4dc63149e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1e9d366f408 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b7e66752c39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..763a3cd6521 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1ad998ae9ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..636b3dc8380 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d61c3245df4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a1cc8b0742e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..679cfe519de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..90e8caf6c23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1280aaf35d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..dd4fed69476 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a1ac0c15a41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2a00ccaae71 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..41268757bc8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ad42e2afd84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3ad2179e91c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..c18b2c4445d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0e0bb4f641f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9ee308215fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6e6c3fa217e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title> >+ <meta name="description" content="Check that sub-resource never gets the referrer URL."> >+ <meta name="referrer" content="no-referrer"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "no-referrer", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a5a04cfe684 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/no-referrer/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..37554d0b3ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..23954df4320 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..89f3b395679 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..be84096fa74 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..3669e9b1566 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dd3c93b6889 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..db69e2f17ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..80e254d9365 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..26c5bb58186 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7d4bcf9e026 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..17b30ec2ccf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5bc11019b38 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..dd933ae1695 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..ff598293c77 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..64792636e57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..337a134d428 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..2ed99daf6f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cae3c9ecd06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..af8883f7347 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..823b59775c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c8ae9ccfcd1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..6f7a6806e8c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..511d41f9447 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bad9a5913cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..19d00666cd1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..e63fa654aa4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ba46d78a7eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..ed99e55f43b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..ec1bb58ad05 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d6279121b2c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..ed9b740c808 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..2c39f3fd93a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0919f45a295 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..9d7dab0554f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..189a82c85aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f285999067c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..4e726ad42e4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f87ad3a5d32 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..28231754a71 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..e3d1b498bab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..34438f354b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6e02f3d3956 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0c77b629250 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..eba9addd891 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ad5fc7c7d81 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..9ab4cdf83d9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..173c6495577 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..743825963eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..4c9628e4c11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..bfe6a69006f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a2a7161e9e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..be29cff1ec3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..df7a1dd4463 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6c3dd82769d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..23b1c9f7632 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..bed99339a37 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d3d999a866 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..9ff905d447e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..ffb89bdf1cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d731f7a1b35 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..66049331455 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3c22697590f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3bcc26b7264 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..cf70132fe29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..dc8ac21f0ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..be09f71e93f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..73303d0f876 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..4166504179a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b7252d31407 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7bdd18cf6bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..01293507748 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..76f3ce9b1f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e9e00bbe397 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..f9aff9a3e9f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..106a5cd2541 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3859466c7ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..ae3c99d79a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..553c1a3358d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..444e868e55d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..c4bbb04f499 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aef727deb57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..dd09c643664 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..05d016aa8e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5998c95f6cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..9b4cf4a4c4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..06874952d0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b8932a16937 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..42ff5f1f272 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..633bca5dd9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..194ea5a490b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..4bd806e5409 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..1a6e774a450 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..40c82584ec7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..2a23fd356ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..51f4051dffc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9918519f438 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..5eade8500ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..04fb16a1be3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5cfd68293a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..5951b046bfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..320062ffd09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4f89b446d9c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..212722c9321 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..3de3c060a97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d17be85644 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..a2a728b7b5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..910791a8f7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..416d23b56e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0b2beaeb72a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..64295c74134 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..68b9ec504dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..69252055d3e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..5d96c06a329 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..79d4be127ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..475e1ab04e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..4452586c190 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..917bbf1fb3d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..01169d097da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..35673291ad7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5258bf5d64e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7ace2c03eb3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..a1e54114712 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eef83eb4c99 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..4b7790e5f9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..08962578590 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dadc9bc73a7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3817c7ebdea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..cffde877e10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5a77602422d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..e30d90bcd52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..96e1557063d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..17af78461a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..ea9f21544a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..b10f9c0f5c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3147acec1d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..2403e94c922 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..44f635102c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..94a7c8f8593 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3d6253e0690 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..c15d5403d18 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b688707a922 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..1180c3558e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..1f56ff4ec9c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aefdd3d8059 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3f6fc0c25f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..98121e02780 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d3c286fc0a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..68889048d58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..5c8725b21ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..82e018f89a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..94ecfd4cd31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..cc796d1d10f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b5273900154 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3016f83efbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..6fdf28dab6a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cf4a2ec9784 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..ea102de5d22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..95ca50ec9d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..31e461e6f8f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..6547780c092 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..d1e4ec5e5a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..954442e4f19 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..d3fd8c6037d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..9ae77fc8525 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ec15c44f175 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7a128673be0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..5afe2786920 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b816c2e097c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..63369de5015 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..80ac216ce53 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5e8e5ff3847 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7cfb36b30b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f978eee6e13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..466647cf5fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3dd15a15bef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..48021931887 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6d30b84ffad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..2ceb79aa4d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..d1a6470f4f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..08ffd83aeca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..1e8b7cfb3df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..dc816247653 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3902f9be984 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..364a673346f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..2d9914b0cc0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1e2c22c7c13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..1cfeb596323 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..fbffbb36315 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a797c7c877a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..9fee107c669 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..7d5176b31d3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bdda3f3b4c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..9b74cb5274b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..3535e470e3b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fe4d60841c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..9a49e208134 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..c005cdb21ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d090cf2fa9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..e5d4322651d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..92d5ad04dfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6de18854711 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..a69c7d9eb9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..80c2dc96234 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7ada3c2c865 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3ce8728da93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..43956fb2773 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c8b6aa309ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..4b0d5ca5441 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..b78a54bdec2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2b607784317 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..6911bd80558 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..5f75d954708 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..13b1d2a3547 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..e7b6afa183a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..972f53c499d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d90fdd6fc67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..89a0e8103c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..2ed48c76b59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2c0006a4f55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e9795458463 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..fc7ce513774 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7a951b65dcd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a8968bdbb85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..73c74711d74 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..153d7c45ec4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0c1848505b1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..2c20f0678cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d71eca016cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..969c31bc65a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..36dea90ccd9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..04035d818eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..2f7b8143471 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..6aaf6bcc355 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a332758eaab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..bd0d460d03f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..b0a83b027e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6a57d720d80 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..442fd0263ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..c4b5d2dc307 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..21a5281aca4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..d5be4cdd187 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..cbde3dc348e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..94afddcbecb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..59d9ac6f3c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..17a49b5e9a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..60727989866 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..178effac3a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..d8d63426e63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dadfe216625 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..31c3ff613e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..021cde83cf5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a06d57df839 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..5427c30120d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..55d1153b4eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2426632cadd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7baebce3242 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..cef8c446d0d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1165cda3118 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..043eabbda9f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..0b5e66191bf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dfdcb727f2e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..add63200fd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..085e7f94dc6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7da01e37af0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..dd6ceec1fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..93e882f38f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fbcaadeb35d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..611b5a31448 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..d8f37e50d29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e25358596cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..344b7222be3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..942d1e58614 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aac546cbb38 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..90e62d99f4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3e897a0df32 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fbf4cdb550f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0fa0241dc63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..309a08d9c1d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..56fae2f9b95 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..94fbeffb5ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3c551d85fc8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3ccc931cf35 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..1b3f80d96d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..c260249ec34 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e637645e326 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..1e1a6908efb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..60237386565 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..85d52a6c07f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..70c140a4d1d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..9e261a6bd39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..162cba85065 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..11014e75147 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3e787e57045 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..245e2f8e068 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..f60b4769396 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..e9e7be04b64 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..07804fc4818 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..690759d6ecc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..4e950e8fec5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ffad58da2e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..b1660c56688 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3141c630194 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..61e1446ce3e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..9efdbe48b93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..88c7a890ba4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3ca9c55b8de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..26b87beba66 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..e12c0aaac75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..22905b15249 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..f7529c58577 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..2e21ae4dd55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..828111c02af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..bf167224f84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..35d0b6ddcb4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aa069ab1888 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..7ed39bedf82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..d5b58f05de2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c5683f4c6c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..893568e3a70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..c98d80d76e4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a32de625cd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..a8bb168d0f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..0df0cb032c3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..efa6e0245ae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..7b0efa8262e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..a77d5f4093e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3814d9da7d1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..c8d7b825023 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..a85b2278ada >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..9ce1de38843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..868a8c0f24b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3e098eda2c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..c744a58972b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6a377bd88e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..42999179f13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..212ab9cbf2e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..106309f79e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..803b14f3f11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f222c73ba35 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a615004892a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..1010e5dd506 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..48e45cf0bd3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d81a3c7d885 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..dc3edd3bc23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..aecad6912fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b277849c3b9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..a18f098be11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f32b57b4618 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..11f40637184 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3df5d15e947 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..1511e2698b0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..58d41ef543c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..e4037a99cb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..16663cef199 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8239aa2d680 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..8a996be4089 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..03a416fef88 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0ff586454d1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..edad55c3df6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..93359f78a7b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0c06182fdfe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..649510a1373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..9c13229902e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8fa763b9528 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0290cc3ce0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..91d2de7e66d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..44f7739c7f2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3b68e4c1fff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..75db963a5e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d2389292d3b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0991c172642 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..fc37bed2d67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..37e9edf2cd1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..4fcf8570f58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..aee2ea7c9d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9d61aaa069d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..87f2615e299 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..e7e8c62d18f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6676bc5e5c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..67dd39746c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..c08627c88bf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..907e457b484 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..1e4cf1c3549 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..61fe98cc34f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..564573facc2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..b33d61b2fea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..5a3ac9cad35 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4c16d081616 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..6c46a9d4f23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..751fe6f733f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..43b04905338 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..67408429258 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..2aeead25c70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..529e5535d4e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..606eb7b432f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..b58bb94275e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b016e9eef9c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..fd7acc30ef0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..5b615aa638d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5b783f97d17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3bf6462f38f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f258c7d56b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a22850211a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..ea7aa041f98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..2847f7f7bd0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..34fefa09b98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..a2f381c735d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..89e14deaf8d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b473c4103b0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0167f462537 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..58b52343262 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..440ab854a17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..6200215d51b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..8a38f962858 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e175cfc5044 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..d8a68ba93b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..3657c99b060 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..699ccf56636 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..488f24e9c14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..929eee92da6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c4194667c44 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0b64e16698c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..facb2bb4f5e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b6c35a828c0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..ffd5e02938c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..32139a7e67c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1da3e27f021 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a514e63656e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..7c4fa4c0f8a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3e8b9066a25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..1a9c7a93359 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..c9d040eba31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c909d2a6c9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..bd94fe57b2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..8aceb49eedc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5abcc691d1c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0b923150566 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..e81c2dd3f9f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7c5c2898d78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3ac3bccf5c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..70c3f7425ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d81634ea263 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..d0037d4b36f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..f44dc59e66f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1643b50b202 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..fc28dbbc24f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..ddc2046916e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e4fb20fcd55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a8ee8b3995a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..85d8099abc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ad2eaab90c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0ba732dbc46 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..6debb95cb57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a1e1ed784e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..ae716116b9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..1a4487f292a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6f59d1b2972 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..eead4be52b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..19e07a14190 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dca2a7a21dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7ca9ebf0a55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..adc00249ccc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2876a53a757 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e08ba26d84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..cf3252420e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2e9128d15bd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..36125e3bb91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..fcc357a289a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c6dc1b9da23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..064b082c8ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..d74ebe4a8a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..56cd6d0c108 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7f47c4dbb6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..47dd5a3b7ee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ce6d648b54b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a12343aa07f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..8472b004cb3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..42b0a63df0d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..c6c2bf36c9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..7d7df4db6ec >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cd79bf402d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..59b3752c8ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..e2ee48a6b5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..76b51b79e5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..af9f72d5bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..ad37935f0ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5073d123866 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..76a388b62df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..767fc96eacc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..427d3ca2a6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..bab1725b978 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..9b27e8aa0d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8eca8d3d532 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..d6c1eee7266 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..a3890c90eae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..813e1a9f7a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..2f3e924a6b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..71f4f82d195 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..adbe0c8678a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..dc0d9ca7d63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..025d2fe085a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f9e813bf836 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..79b9bf587fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..c9d64651295 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..368c7a7f094 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..d225f9beccd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..a549857a4dc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d91fb76c16e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..796ae832baa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..99797a3cfcb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5026d673c19 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..22c5bcf2e43 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..0c266d63d47 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b8aa0d4930d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..988290ca855 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..9e66977275f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6efea63b7d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..4a766eb47de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..ba464fe3ac6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f6bb9696e63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..c40026e5ae7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..8290ed5189f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..df9a16cf495 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..c26459c46d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..1991fd3d354 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e490cad7e20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..873e1cdb0e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..85286d15a71 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9bb136cc623 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..76830d47444 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..183f6364f17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d4aa4c8b04d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..f3989640a94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..81c6a2700df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..17b617d8219 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http-expected.txt >new file mode 100644 >index 00000000000..100f1f09113 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html >new file mode 100644 >index 00000000000..e85befc20d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cd4d62c7f06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/same-origin-upgrade.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..38cfca4fcaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..832ac698a5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin-when-cross-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..300a86bedd6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..81b3c6e910e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..4d59f674b98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..43ea7ec4670 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..be84096fa74 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ca81802a256 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0496cbaf505 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..db69e2f17ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..37d6dbe8b30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..25764ac134d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7d4bcf9e026 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..31516d48b3d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9d6734af804 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..83ec85e48c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b84f1f575e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a23c1f94797 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4184f2c06dc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2daa6a24c58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7f3da22ffb0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0c35ea2dc2e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bdbab61818d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c30fa7725da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..afd79b3f4d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0f736f19b6e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b4b38a536b3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8e8aac1ab23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..bfb5349a641 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1cbff219caa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0c4d9502ffd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..08e015bf785 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a1ff2ad96a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d1e1580543e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..ce605fd5f5e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..01140f8a5bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9d7dab0554f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bdd2cd63dc8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c938edbf60 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4e726ad42e4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..aefce7aae8d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..408f78d24d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e3d1b498bab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..5dfdefd487f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3c31d44487c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7666a3274c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4aefa909094 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2a0ce947e20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..905495c377b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..070cdcd6fe5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..694aae3be6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..76e44bd9f55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..8bfbfdded24 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..de33ebbf085 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..da7ed8433ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..85e9536c51f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1ee2c97e046 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..69bf27447ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..7ff64169d47 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..55c91da1dd2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..306ec8c3e7c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9cf165fc9e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a6dca71ee6e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a0f856bcc24 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..412dd7319f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2443c06633c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a59d2931df6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4c8dcb9bb14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..16129f9cb61 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3f550ac7594 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e5126a170db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c4d3cb27994 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d4ee19304f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0ee559675bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c2877045f5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d10f5056421 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..14eed644445 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3842bac293b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2c2345299ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b07f6b7302a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b0251e9f486 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..65a77074aa4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4ebdb286df0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..10c095774da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1294fae8cf0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e17185329b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e5aa4cbb889 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e59a9e046f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..135a4fb22a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0ab087032fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7b8819c91b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3a3f291f176 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..939d0c4f3fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1325ec4b738 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b7fadf8e55e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..102cd74a4bf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2a23fd356ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7ba3045ef0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..434c987a716 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5eade8500ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..bb303226b7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f6c53c3bf94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5951b046bfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..57801468115 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..42b2bd228be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8720a11a0ee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6996618954b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e1e86b50e75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..351b696c9a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b73f65da88c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f99035ed6f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1fafb43df7b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..dfa86e093d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cd6370f47b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dfc251c2ab9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d996f1eb49f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0b9ad33d595 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..22d4b18008f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b7f20cb80a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8cddef15b05 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2d6990980e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d358fdb4423 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e369f130210 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7ace2c03eb3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..95d57c2b9ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dfcc8969a86 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4b7790e5f9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d90b3b8df34 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d550fcb1c00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3817c7ebdea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..0c84b5e9efc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3b96d4ccf46 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e30d90bcd52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..852e16e47d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1cd2c28e65d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ea9f21544a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0d265edeb9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e8ebb3ebdab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2403e94c922 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..c2450a514eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f2da1887305 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3d6253e0690 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..5bc159a13a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..95057640874 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1180c3558e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c0c2ae7cd90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..57274f15b4b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3f6fc0c25f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..6dd1c699406 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..59f1f815179 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..68889048d58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7f284d7ab69 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eb59d73bc5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..94ecfd4cd31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..cefe89addbc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0e54ab7d745 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3016f83efbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..7e9aadfca7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..07d01f108be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ea102de5d22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3a2025adf47 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ce8941fdddf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6547780c092 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9120ee2daa1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2f44c5fe1d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d3fd8c6037d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..1897e65d091 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..39623fce989 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7a128673be0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..05e3c5061e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..40923708f52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..63369de5015 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..9a50c94e13e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5b161886bee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7cfb36b30b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c1341fba415 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0f981cd2221 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3dd15a15bef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..5a14370027b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1f71ca37ff4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2ceb79aa4d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b40e78125f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..28290fd517c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1e8b7cfb3df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9229b712c59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d517a55aa9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..364a673346f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..975bbef9eec >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f60534e7419 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1cfeb596323 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..200d2581d7f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3466a6831e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9fee107c669 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c4f86b6f13f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..baec811a1e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9b74cb5274b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e561639229e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1d480cbd25b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9a49e208134 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9e05f3169fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7aacb6574ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e5d4322651d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6ea52cc0b8a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fcd2efe3aeb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a69c7d9eb9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..9d7a35e7321 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b0b306ae587 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3ce8728da93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..eabbc62da39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6017d6b94a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4b0d5ca5441 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..8d4ae17f4a7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ab00ea2ee65 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6911bd80558 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..7abbf86e45c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e3ad373534f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e7b6afa183a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..5964582f93a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..234556cb92f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..37c0ab66dcb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..d8d232ae484 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6d7aa8ff2f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8b4e7f16a1a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..23632702001 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..651619691c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..130456e69d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..ae3efa41619 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b08e19c6d4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0c1848505b1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9df73a22f39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2154c1a967c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..fd703f491cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..86fcde84c97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2a8e9e8f2ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..53579c92a0e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..91a00709615 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9e0ece48650 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5e7be7c3ef9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..da9e364cc25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ed19014ad09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bc0e22c0df1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0aa29edb30a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f27127ffa17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d17b5814704 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..5141185712a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c8f7028a6bd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..59d9ac6f3c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..866d1e85d9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9b92bb4985a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b8fe04b732e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..380654d5817 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dcba74b5469 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..27f17fa506f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..59db4660452 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8dc20b86377 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..241c5e42574 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..aeb58ff3e98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a6d7df5e0db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..15277bcb7ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..8b487f6c0c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a7dfee8c6d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..043eabbda9f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0688080d1fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..97c416b53e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..834756ca877 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..239684dd290 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ad57991644f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..28feb12b7bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..1e7e81a29da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0b059bebaef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..997ac819619 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e2fb1961894 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5bb88e58490 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7446fbf2060 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b00cdd18680 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a859745a19a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..54442922128 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e938e2948a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7ad2fc8c522 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..982f0e0b2f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..4607b2f2904 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f1f54184582 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..94fbeffb5ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..866663bf416 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f6cf2ce1318 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1b3f80d96d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f692ede758e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..950238da249 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1e1a6908efb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6901246fd9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7e43e71835e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..70c140a4d1d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..4e80eb02c64 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2523a4e54a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..11014e75147 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3b18bbb823e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..de2bb11c765 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f60b4769396 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a3a534244a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e55373f8596 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..690759d6ecc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..5953cb46675 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e9588900c4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b1660c56688 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b42b245873a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..96aa33abd38 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9efdbe48b93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..127050a1515 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ceafa6622a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..26b87beba66 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..89b20840265 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..87f6d3bc2de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f7529c58577 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..5d1e2edf777 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cc815000ea0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bf167224f84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ac2de9e9025 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f92d943be51 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7ed39bedf82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..7be8878c8dc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d9c0cb2f212 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..893568e3a70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..8a8ea462a79 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..540d0b68d5e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a8bb168d0f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6d84859d9a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e2e2df0c0a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7b0efa8262e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2470adc1294 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5bfa970a3c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c8d7b825023 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..72447eb8214 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..306a53536ac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3a55be524c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3e098eda2c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..a8750785088 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7569625293c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..42999179f13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..664289ffa68 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7aa21935a8d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..803b14f3f11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..01783b97c69 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f37f4d11391 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1010e5dd506 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9cef3616cb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..15066c54c23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dc3edd3bc23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d18562e64c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..41cd26f4a91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a18f098be11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e0cf6d2d9fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..61a10699b6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3df5d15e947 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bc042eab8b3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6fc6ee3078b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e4037a99cb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a9c87d94ff4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1777416d34e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8a996be4089 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..71c9c907358 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8ba26fbb6e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..edad55c3df6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0ee1eb93da8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..32aaadec9ec >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..649510a1373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4bd1a03dcc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a3fa608d5f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0290cc3ce0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2642535512a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2c7b9c3c300 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3b68e4c1fff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..06543ec39db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0dd4918e113 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0991c172642 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..242d995189f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..832e8aacb2f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4fcf8570f58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f101b25a201 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2bf2e083b59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..87f2615e299 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..07258ac6c72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9b8d53febfb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..67dd39746c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..43cf88c2f65 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e08c50038a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1e4cf1c3549 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ee250105544 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..84d4bdeb55d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b33d61b2fea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e7518ed3bf8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9ff1ca24ed7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6c46a9d4f23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..5d7e052a1d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7e5b85302e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..67408429258 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..332388ea25c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..445b1034d0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..606eb7b432f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..428258e2ba6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d4800730bc4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..fd7acc30ef0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a0888ea6f73 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eb665b09513 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3bf6462f38f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..8d63366815a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0e23e25fa36 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ea7aa041f98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..eb5e55d20c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9617a8bb34c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a2f381c735d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..70611c502d3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b6d0e7ff101 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0167f462537 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..53d81620f4e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ad97b4b3422 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6200215d51b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..41c700bc81f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..938b000a310 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d8a68ba93b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..daa1a3aae85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bb96ded1d87 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..488f24e9c14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..535f3bebccc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3d641184dd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0b64e16698c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f874efccd74 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4219c7d3587 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ffd5e02938c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ee647402d00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..38d11a6cf8c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e14ecdbda50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..a8425d86c34 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bffd21d04bf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6389bbea77a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9b427a8afd0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8240b00c83a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c36b1949bad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..eef34cc540a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7ed6d221b09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0b923150566 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..2a00a0655be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..95c7305e3ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3e46d64e2d6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b7f17b1ae4f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5b6d3290d72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3d091bec4c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..30e950dd1aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..66d72700d4e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6d014a66296 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d27633cda98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..868fb83f114 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e710ddd206d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..58fbc1ce17b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0f5c501e95d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b502e2b73c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f37fc76170e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1cb4e02094c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ae716116b9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..53967957173 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d0ed9851ccc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ef3ff1663cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..07b34aef6f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f87389bcbf0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b7851b167f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..19a4b7dc36a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6353124a019 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..83b99148f10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f841857ace0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..321a98efe2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..43856325bed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..39fffb013a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c2dcef5a255 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..064b082c8ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3acf7cd000d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1f5508cf0b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..728b9f31b6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..be3189f7605 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9645f73b1b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..750c26b7f77 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..4357b4568a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9b378533a98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..988c59c67ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7505361c716 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..936568254a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..329e1920a22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..c61dde7781d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9f856d069ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6feecfd4a13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c56f4990bb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1364bf9da10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..498961b526d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..f8c686e48b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..02ea7d56b4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bab1725b978 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..55fdf3837d9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8a8aa98a6a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d6c1eee7266 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..98cc61436e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..74c6e57be25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2f3e924a6b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1110ef082b6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..163d44278f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dc0d9ca7d63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..00e304fa40f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..30b75711229 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..79b9bf587fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..52103eb8d41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a5a3ebdd525 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d225f9beccd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..85a8aa12f6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..79d550bec0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..796ae832baa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..d69b1f9dbc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..25ab17f8a84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..22c5bcf2e43 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..004a25c2977 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..183aed3546b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..988290ca855 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c194a59094d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e03c0c2e2ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4a766eb47de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..141da1af782 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..868e4a2eaec >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c40026e5ae7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..103b06e923e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7847173cf1c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c26459c46d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4fb66f80c3a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8ed7ad656ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..873e1cdb0e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..313c1bc368c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..87444136d0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..76830d47444 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..261516d3ba7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f1b9cfe060c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f3989640a94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..810f1c73cf8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..76e68b4e4bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..100f1f09113 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..8fa3c37a9c0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3393ace19de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..38cfca4fcaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..93c5d95b994 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'origin'</title> >+ <meta name="description" content="Check that all subresources in all casses get only the origin portion of the referrer URL."> >+ <meta name="referrer" content="origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..57220dbe6e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..98b33ee249c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..1441f041505 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4978ced10af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..dcd6f599e57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..8dfa7ad6b40 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e03a4e3c360 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..d4ac880d437 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..c4d2401e1e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5d3af6b3f96 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..d024b6e9622 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..c0ec1c7b35a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8dcc85b8131 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..fa299387093 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..765e2d03fb4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..01e57607e3c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..5e069aa85db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..616eda833c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3c1b0db771f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3d6dda91bab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..b3b9e780904 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..408376b280e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..68e895a5ba2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..0e530132808 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1bd27390dfd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..97f6be9ac63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..d14658ffaa2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..194eb81c5db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..e17b2aed262 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..47f1cea345b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f714fcc6b43 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..fc06bdb809c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..de614235731 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a58bf19d410 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..2692c6e3052 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..69833f84e27 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b98f88f639a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..38bc67f7d8d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..aca13b25172 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ee58807cd73 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3a4b87b4607 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..41e112b0966 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..64119fb2812 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..262f56ec725 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..e7de640c72b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..769404b1c8b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..b5df87d91e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..fa168fd9b11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f544b0da610 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..1dd9195f112 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..506c4957d04 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..00d0d0f8d91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..52f3d926107 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..553a6fd3881 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aac52c103ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..2a50d85e22a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..68d11650ada >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eac503ff740 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..58140d37abd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..5c98dc5bd38 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8bdef980b5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..66049331455 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..96b5d35daab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f939d47c1b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..cf70132fe29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..d48f34cba67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..05394701608 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..73303d0f876 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..2321745a58d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2b245ffa57f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..4c9f2b5ac68 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..93a43ccff7f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7f72327d032 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e9e00bbe397 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..48f17b2bf82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e86f6305849 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3859466c7ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..e4e1f25613e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2d48f415c13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..f7409b38eea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..5110aef69a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4e695c6cfed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..dd09c643664 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..688a5ea7743 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2dc88c6dc29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..9b4cf4a4c4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..9f5d1fe4c00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5e65eb72de1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..91116c3eac1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..5344928b729 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0fe0946a7f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..8c6eba69cd6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..8f36bc8a214 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2d441110f20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e76e59e5dc4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html" >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html" >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..d14056f807b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4ada1bde980 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..957b75dee70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..384c0434b07 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..03a5cf76246 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..115bd730b05 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..a682eac220f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9309181793f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..a48ad6185e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f86c2410971 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..83e4efc44f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..638faa84014 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..ac48fc6aef1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b2f2e017bf5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..cf8991f3949 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..2ce423d390b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b3a00c2aca9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..fb7c861405c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..ff00fdd2eb3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cacce13204d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..6f670df2273 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..05ac113570a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..268baf2870d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..13dda576ae3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..33345545211 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7a0e9f9bf85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..659ab14cc45 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..26263c5b5bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c43b38eafe9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..9f4d467bbe5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..583f80e75d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4a62c530820 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..a2ae119bd6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..a90a29e9d88 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e95fdb6e07d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..338a3f8d0ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..a44157c8f45 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f8c60775b78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0a84f1a9600 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..754a7932af0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..756623dfdc6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3ee6f501cd6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..e9d4ffa7f2f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..efb03a70269 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..e8063d2b5f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..cf42f306bfa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4361fe04e2f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..da3561fef99 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..a1c3a41153c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..61db0f88ec3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..49ac02229fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..53cc66bf3b1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7504d3671dc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..261c24e901e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..a7ca6718c10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f3323961e97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..229f4e2721a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..ce275d2aa72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f05d6d30172 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..3ffddac810c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..82f4495695f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..448e63ff4e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..724bdb4c10b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..b92937fdb54 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..793f0a2f585 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..076d886eafb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..bb56f640667 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bc8e824f021 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..a759aa821cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..6b658e12a38 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cf1b46ae35a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..dd9ea8f0c6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..e3c366d8e6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a3088270bf9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..e6b9304869b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f77583edb57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..39cdd15aa2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7886f6bc602 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..e93152dbca1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..48d476bfd6e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..152d07908fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..442a92535e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c4da6a0493 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..792023470a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..c977d6abf0d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7e73a47d476 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..c5783028d41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f6ea03447a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..215804c066f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..fc33178b588 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..d5649a0442c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4c3dcac8953 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..4f892f756fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..db7320e4e3f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1caf7e65f42 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..8db2333882c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..790b470b6fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d3aa60fa90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..06413f3fc56 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..b0a1155a7b6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..33b94a5cdb9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..89a0e8103c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..c30696cc711 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0c8424b34dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e9795458463 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..6c0cc53bb13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f4774cc6857 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a8968bdbb85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..109a92e4080 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1f3594be6b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..908769cb0f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3af24e81b45 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1d9836b3901 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..969c31bc65a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..8c0cea74794 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a310ba58c60 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..2f7b8143471 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..8d563e77529 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f58510c2c34 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..2454582baf3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..f1b8cdf20ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..35e8eb94f79 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..442fd0263ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..167f2d2d88d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..53ea9f1d1b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..d5be4cdd187 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..6a8dba9757a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d1526773844 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..daa9f9459f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..06eb373aed0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6684bc527e6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..178effac3a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..5e2a108f2f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4b60ef7a209 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..31c3ff613e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..328682e0974 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9bb6461307a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..5427c30120d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..ec2a37a2caf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..55cfdb846d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7baebce3242 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..9dba3effaba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..541d634de60 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3d1c9ce51cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..6320d8efc72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d2eb809c68 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..add63200fd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..02919e7ef97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..22edbc1850b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..dd6ceec1fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..bd042ca8f17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c7ba160324 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..611b5a31448 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..73f432c16a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ed6eac66778 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..344b7222be3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..679ef88d994 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2d18c90d21a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..90e62d99f4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..f9eaa06a95c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..29662590121 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0fa0241dc63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..b3340eeb24d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..29ef65d25fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..d8bd866592c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..45e2c2760a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b817c026d7d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..04ae64fb6c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..43051d36855 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8c46394431e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a2e818e3fc2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..2e3fd52e4aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4f681352dca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..acdc687def2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..5b368ab7bcd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d50cc4e089f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..2805b5fb381 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..b4866f9faa1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..19dd78a129a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..2ea24a2c949 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3d6aa3805a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >new file mode 100644 >index 00000000000..309da8091a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: same-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ac3dbe78927 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..b564872eedf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..cd4c32b9393 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..241929835c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..6c347a00da1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..387714fcb77 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bf9558868ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..1fae15df701 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..cd4ee2d6fb2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f640c9a783e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..4336ccaf0e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..16dd0012855 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bf8430bc768 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7863b005e32 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..20ba4f05912 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b918e21edfd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..32f84650d6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..81e8b03a642 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bdcd1d28584 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..416a816b192 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..b3a4df02596 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..676ee8f3f33 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..9998d111942 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..09aca420769 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..12c9f6768d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7652e136ea9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..1497633d365 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..09c1de310cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..02720db4c7c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f74a4c0a14f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d79b0117e8a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0737f6d6096 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..e230f1cc900 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..93b1f880e9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..d7582d7896a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..7c5f43da6b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..90ceb4d1e39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..66436e815d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..57b33f26515 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a961ef1937f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..502fd20c371 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..9bf8885fd84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f13750214f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..a637c2db57b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..8c6c5575988 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ae7b2a91749 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0da37694431 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..180b6f5c30a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1da6f2dbcfa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..2cfbbdeccd5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..5f8b261c504 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2a52d4acf9f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..94b5f409518 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..8f44d1179d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3972b4c048c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7a48532386b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f1955a0ae5d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ae300ed76f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..f39c34e7ac0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..34eb383a5de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cc9abf88956 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..c939aedb2ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..a76e568c7a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..292645ffe36 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..af129dd2811 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..ec42bdaf812 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2ab1c10a2b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..58f2f07055c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..a18a4ae4d92 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ba4e17cc9b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..572bd7f361b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..602c4bc4cfe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6fc9e9cad87 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..dd44e150580 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..77b4460ea8e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6e824400a7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..0be9910c25d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..63b244f94ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b1fa9e2c757 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..a718d338816 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..8a3bdfe72eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..865db8966b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..87c6e735844 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..1281bc7ee41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5ad9ce5cb7c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..5be018b42a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..d78713d8c6a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..37632cd5552 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..8a7b0f09452 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..22adee613d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b61b74885dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..7f4c11a0bef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..f28f6917a50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d3dff45f95a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >new file mode 100644 >index 00000000000..5657751b7da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >new file mode 100644 >index 00000000000..e2e7ded1497 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e79f8a61ffb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/cross-origin.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a514e63656e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..cf2b5269048 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3bfa2e8f84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..1a9c7a93359 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..a7d5d03782d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d31c46044d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..bd94fe57b2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..504ece5d888 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1cecd631d30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..6182a5bb98a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..709f577dfc4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3e756bbbcee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3ac3bccf5c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..c5cbe784834 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0c81d0ed106 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..d0037d4b36f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..4bf9dc87276 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..45c2fcca7e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3f477f55409 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'omitted'. expected (undefined) undefined but got (string) "http://localhost:8800/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..d1b3228de87 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..326257ddb4e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a8ee8b3995a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..562da359007 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5e7b1f4f7a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0ba732dbc46 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..56bf9a992ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..87b089a9881 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..56b784fa70c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3fcff7ff5ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..685ad3d271d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..eead4be52b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..7b87fb43bc3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1c833b22701 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7ca9ebf0a55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..5d0a7069193 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3bbb3e98517 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e08ba26d84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..5997b079765 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..acedfa8e4fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..36125e3bb91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..68dbe6d2a52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b64cab886ee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..ee0f19a8371 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..30972c3a693 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b0222e33b48 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7f47c4dbb6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..3646d06a6d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..28acb8d56b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a12343aa07f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..b885670555e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..41ad06ae043 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..c6c2bf36c9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..7e1b68370d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9a73badac01 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..59b3752c8ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..a04b753a15d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4671491732b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..af9f72d5bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..d0009e0462a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9859bd20393 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..76a388b62df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..48bba7e7e8c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..00ad12d7b5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..4ffc812f824 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..61273ce04db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..349b26d4c9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..c0595449b23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..2f5e63f5f6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0ca976095ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..b9703d1202d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..1eefddd0bdc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8028bfa57ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..1e9d366f408 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..160c3cae70f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d81c99e80e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..1280aaf35d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..203765c8c30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..00bf064d323 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >new file mode 100644 >index 00000000000..9ee308215fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >new file mode 100644 >index 00000000000..7bbb54db6f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'same-origin'</title> >+ <meta name="description" content="Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="same-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin"> >+ <meta name="assert" content="The referrer URL is omitted when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "same-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "omitted" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..892b6e8cb57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/same-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/same-origin-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/spec.src.json b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/spec.src.json >new file mode 100644 >index 00000000000..5f0247b935b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/spec.src.json >@@ -0,0 +1,644 @@ >+{ >+ "specification": [ >+ { >+ "name": "unset-referrer-policy", >+ "title": "Referrer Policy is not explicitly defined", >+ "description": "Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policies", >+ "referrer_policy": null, >+ "test_expansion": [ >+ { >+ "name": "insecure-protocol", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "upgrade-protocol", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "downgrade-protocol", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "omitted" >+ }, >+ { >+ "name": "secure-protocol", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ } >+ ] >+ }, >+ { >+ "name": "no-referrer", >+ "title": "Referrer Policy is set to 'no-referrer'", >+ "description": "Check that sub-resource never gets the referrer URL.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer", >+ "referrer_policy": "no-referrer", >+ "test_expansion": [ >+ { >+ "name": "generic", >+ "expansion": "default", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "omitted" >+ } >+ ] >+ }, >+ { >+ "name": "no-referrer-when-downgrade", >+ "title": "Referrer Policy is set to 'no-referrer-when-downgrade'", >+ "description": "Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade", >+ "referrer_policy": "no-referrer-when-downgrade", >+ "test_expansion": [ >+ { >+ "name": "insecure-protocol", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "upgrade-protocol", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "downgrade-protocol", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "omitted" >+ }, >+ { >+ "name": "secure-protocol", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ } >+ ] >+ }, >+ { >+ "name": "origin", >+ "title": "Referrer Policy is set to 'origin'", >+ "description": "Check that all subresources in all casses get only the origin portion of the referrer URL.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin", >+ "referrer_policy": "origin", >+ "test_expansion": [ >+ { >+ "name": "generic", >+ "expansion": "default", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "origin" >+ } >+ ] >+ }, >+ { >+ "name": "same-origin", >+ "title": "Referrer Policy is set to 'same-origin'", >+ "description": "Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin", >+ "referrer_policy": "same-origin", >+ "test_expansion": [ >+ { >+ "name": "same-origin-insecure", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "same-origin-secure-default", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "same-origin-insecure", >+ "expansion": "override", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "omitted" >+ }, >+ { >+ "name": "cross-origin", >+ "expansion": "default", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "cross-origin", >+ "subresource": "*", >+ "referrer_url": "omitted" >+ } >+ ] >+ }, >+ { >+ "name": "origin-when-cross-origin", >+ "title": "Referrer Policy is set to 'origin-when-cross-origin'", >+ "description": "Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin", >+ "referrer_policy": "origin-when-cross-origin", >+ "test_expansion": [ >+ { >+ "name": "same-origin-insecure", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "same-origin-secure-default", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "same-origin-upgrade", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "same-origin-downgrade", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "same-origin-insecure", >+ "expansion": "override", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "cross-origin", >+ "expansion": "default", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "cross-origin", >+ "subresource": "*", >+ "referrer_url": "origin" >+ } >+ ] >+ }, >+ { >+ "name": "strict-origin", >+ "title": "Referrer Policy is set to 'strict-origin'", >+ "description": "Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin", >+ "referrer_policy": "strict-origin", >+ "test_expansion": [ >+ { >+ "name": "insecure-protocol", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "upgrade-protocol", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "downgrade-protocol", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "omitted" >+ }, >+ { >+ "name": "secure-protocol", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "origin" >+ } >+ ] >+ }, >+ { >+ "name": "strict-origin-when-cross-origin", >+ "title": "Referrer Policy is set to 'strict-origin-when-cross-origin'", >+ "description": "Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin", >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "test_expansion": [ >+ { >+ "name": "same-insecure", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "same-insecure", >+ "expansion": "override", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "cross-insecure", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "cross-origin", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "upgrade-protocol", >+ "expansion": "default", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "downgrade-protocol", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "http", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "omitted" >+ }, >+ { >+ "name": "same-secure", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ }, >+ { >+ "name": "same-secure", >+ "expansion": "override", >+ "source_protocol": "https", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "subresource": "*", >+ "referrer_url": "origin" >+ }, >+ { >+ "name": "cross-secure", >+ "expansion": "default", >+ "source_protocol": "https", >+ "target_protocol": "https", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "cross-origin", >+ "subresource": "*", >+ "referrer_url": "origin" >+ } >+ ] >+ }, >+ { >+ "name": "unsafe-url", >+ "title": "Referrer Policy is set to 'unsafe-url'", >+ "description": "Check that all sub-resources get the stripped referrer URL.", >+ "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url", >+ "referrer_policy": "unsafe-url", >+ "test_expansion": [ >+ { >+ "name": "generic", >+ "expansion": "default", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "stripped-referrer" >+ } >+ ] >+ } >+ ], >+ >+ "excluded_tests":[ >+ { >+ "name": "cross-origin-workers", >+ "expansion": "*", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "redirection": "*", >+ "delivery_method": "*", >+ "origin": "cross-origin", >+ "subresource": [ >+ "worker-request", >+ "module-worker", >+ "shared-worker" >+ ], >+ "referrer_url": "*" >+ }, >+ { >+ "name": "upgraded-protocol-workers", >+ "expansion": "*", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "delivery_method": "*", >+ "redirection": "*", >+ "origin": "*", >+ "subresource": [ >+ "worker-request", >+ "module-worker", >+ "shared-worker" >+ ], >+ "referrer_url": "*" >+ }, >+ { >+ "name": "mixed-content-insecure-subresources", >+ "expansion": "*", >+ "source_protocol": "https", >+ "target_protocol": "http", >+ "delivery_method": "*", >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "*" >+ }, >+ { >+ "name": "elements-not-supporting-attr-referrer", >+ "expansion": "*", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["attr-referrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": [ >+ "xhr-request", >+ "worker-request", >+ "module-worker", >+ "shared-worker", >+ "fetch-request" >+ ], >+ "referrer_url": "*" >+ }, >+ { >+ "name": "elements-not-supporting-rel-noreferrer", >+ "expansion": "*", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": ["rel-noreferrer"], >+ "redirection": "*", >+ "origin": "*", >+ "subresource": [ >+ "iframe-tag", >+ "img-tag", >+ "script-tag", >+ "xhr-request", >+ "worker-request", >+ "module-worker", >+ "shared-worker", >+ "fetch-request", >+ "area-tag" >+ ], >+ "referrer_url": "*" >+ }, >+ { >+ "name": "area-tag", >+ "expansion": "*", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": "*", >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "area-tag", >+ "referrer_url": "*" >+ }, >+ { >+ "name": "worker-requests-with-swap-origin-redirect", >+ "expansion": "*", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": "*", >+ "redirection": "swap-origin-redirect", >+ "origin": "*", >+ "subresource": [ >+ "worker-request", >+ "module-worker", >+ "shared-worker" >+ ], >+ "referrer_url": "*" >+ }, >+ { >+ "name": "overhead-for-redirection", >+ "expansion": "*", >+ "source_protocol": "*", >+ "target_protocol": "*", >+ "delivery_method": "*", >+ "redirection": ["keep-origin-redirect", "swap-origin-redirect"], >+ "origin": "*", >+ "subresource": ["a-tag", "area-tag"], >+ "referrer_url": "*" >+ }, >+ { >+ "name": "source-https-unsupported-by-web-platform-tests-runners", >+ "expansion": "*", >+ "source_protocol": "https", >+ "target_protocol": "*", >+ "delivery_method": "*", >+ "redirection": "*", >+ "origin": "*", >+ "subresource": "*", >+ "referrer_url": "*" >+ } >+ ], >+ >+ "referrer_policy_schema": [ >+ null, >+ "no-referrer", >+ "no-referrer-when-downgrade", >+ "same-origin", >+ "origin", >+ "origin-when-cross-origin", >+ "strict-origin", >+ "strict-origin-when-cross-origin", >+ "unsafe-url" >+ ], >+ >+ "test_expansion_schema": { >+ "expansion": [ >+ "default", >+ "override" >+ ], >+ >+ "delivery_method": [ >+ "http-rp", >+ "meta-referrer", >+ "attr-referrer", >+ "rel-noreferrer" >+ ], >+ >+ "origin": [ >+ "same-origin", >+ "cross-origin" >+ ], >+ >+ "source_protocol": [ >+ "http", >+ "https" >+ ], >+ >+ "target_protocol": [ >+ "http", >+ "https" >+ ], >+ >+ "redirection": [ >+ "no-redirect", >+ "keep-origin-redirect", >+ "swap-origin-redirect" >+ ], >+ >+ "subresource": [ >+ "iframe-tag", >+ "img-tag", >+ "script-tag", >+ "a-tag", >+ "area-tag", >+ "xhr-request", >+ "worker-request", >+ "module-worker", >+ "shared-worker", >+ "fetch-request" >+ ], >+ >+ "referrer_url": [ >+ "omitted", >+ "origin", >+ "stripped-referrer" >+ ] >+ } >+} >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/spec_json.js b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/spec_json.js >new file mode 100644 >index 00000000000..346a6218f9e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/spec_json.js >@@ -0,0 +1 @@ >+var SPEC_JSON = {"test_expansion_schema": {"origin": ["same-origin", "cross-origin"], "subresource": ["iframe-tag", "img-tag", "script-tag", "a-tag", "area-tag", "xhr-request", "worker-request", "module-worker", "shared-worker", "fetch-request"], "target_protocol": ["http", "https"], "expansion": ["default", "override"], "delivery_method": ["http-rp", "meta-referrer", "attr-referrer", "rel-noreferrer"], "redirection": ["no-redirect", "keep-origin-redirect", "swap-origin-redirect"], "referrer_url": ["omitted", "origin", "stripped-referrer"], "source_protocol": ["http", "https"]}, "specification": [{"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policies", "referrer_policy": null, "title": "Referrer Policy is not explicitly defined", "test_expansion": [{"origin": "*", "name": "insecure-protocol", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "http", "subresource": "*"}, {"origin": "*", "name": "upgrade-protocol", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "http", "subresource": "*"}, {"origin": "*", "name": "downgrade-protocol", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "omitted", "source_protocol": "https", "subresource": "*"}, {"origin": "*", "name": "secure-protocol", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "https", "subresource": "*"}], "name": "unset-referrer-policy", "description": "Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."}, {"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer", "referrer_policy": "no-referrer", "title": "Referrer Policy is set to 'no-referrer'", "test_expansion": [{"origin": "*", "name": "generic", "target_protocol": "*", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "omitted", "source_protocol": "*", "subresource": "*"}], "name": "no-referrer", "description": "Check that sub-resource never gets the referrer URL."}, {"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade", "referrer_policy": "no-referrer-when-downgrade", "title": "Referrer Policy is set to 'no-referrer-when-downgrade'", "test_expansion": [{"origin": "*", "name": "insecure-protocol", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "http", "subresource": "*"}, {"origin": "*", "name": "upgrade-protocol", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "http", "subresource": "*"}, {"origin": "*", "name": "downgrade-protocol", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "omitted", "source_protocol": "https", "subresource": "*"}, {"origin": "*", "name": "secure-protocol", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "https", "subresource": "*"}], "name": "no-referrer-when-downgrade", "description": "Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information."}, {"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin", "referrer_policy": "origin", "title": "Referrer Policy is set to 'origin'", "test_expansion": [{"origin": "*", "name": "generic", "target_protocol": "*", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "*", "subresource": "*"}], "name": "origin", "description": "Check that all subresources in all casses get only the origin portion of the referrer URL."}, {"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin", "referrer_policy": "same-origin", "title": "Referrer Policy is set to 'same-origin'", "test_expansion": [{"origin": "same-origin", "name": "same-origin-insecure", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "http", "subresource": "*"}, {"origin": "same-origin", "name": "same-origin-secure-default", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "https", "subresource": "*"}, {"origin": "same-origin", "name": "same-origin-insecure", "target_protocol": "*", "expansion": "override", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "swap-origin-redirect", "referrer_url": "omitted", "source_protocol": "*", "subresource": "*"}, {"origin": "cross-origin", "name": "cross-origin", "target_protocol": "*", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "omitted", "source_protocol": "*", "subresource": "*"}], "name": "same-origin", "description": "Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL."}, {"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin", "referrer_policy": "origin-when-cross-origin", "title": "Referrer Policy is set to 'origin-when-cross-origin'", "test_expansion": [{"origin": "same-origin", "name": "same-origin-insecure", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "http", "subresource": "*"}, {"origin": "same-origin", "name": "same-origin-secure-default", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "https", "subresource": "*"}, {"origin": "same-origin", "name": "same-origin-upgrade", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "http", "subresource": "*"}, {"origin": "same-origin", "name": "same-origin-downgrade", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "https", "subresource": "*"}, {"origin": "same-origin", "name": "same-origin-insecure", "target_protocol": "*", "expansion": "override", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "swap-origin-redirect", "referrer_url": "origin", "source_protocol": "*", "subresource": "*"}, {"origin": "cross-origin", "name": "cross-origin", "target_protocol": "*", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "*", "subresource": "*"}], "name": "origin-when-cross-origin", "description": "Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."}, {"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin", "referrer_policy": "strict-origin", "title": "Referrer Policy is set to 'strict-origin'", "test_expansion": [{"origin": "*", "name": "insecure-protocol", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "http", "subresource": "*"}, {"origin": "*", "name": "upgrade-protocol", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "http", "subresource": "*"}, {"origin": "*", "name": "downgrade-protocol", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "omitted", "source_protocol": "https", "subresource": "*"}, {"origin": "*", "name": "secure-protocol", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "https", "subresource": "*"}], "name": "strict-origin", "description": "Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."}, {"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin", "referrer_policy": "strict-origin-when-cross-origin", "title": "Referrer Policy is set to 'strict-origin-when-cross-origin'", "test_expansion": [{"origin": "same-origin", "name": "same-insecure", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "http", "subresource": "*"}, {"origin": "same-origin", "name": "same-insecure", "target_protocol": "http", "expansion": "override", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "swap-origin-redirect", "referrer_url": "origin", "source_protocol": "http", "subresource": "*"}, {"origin": "cross-origin", "name": "cross-insecure", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "http", "subresource": "*"}, {"origin": "*", "name": "upgrade-protocol", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "http", "subresource": "*"}, {"origin": "*", "name": "downgrade-protocol", "target_protocol": "http", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "omitted", "source_protocol": "https", "subresource": "*"}, {"origin": "same-origin", "name": "same-secure", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "https", "subresource": "*"}, {"origin": "same-origin", "name": "same-secure", "target_protocol": "https", "expansion": "override", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "swap-origin-redirect", "referrer_url": "origin", "source_protocol": "https", "subresource": "*"}, {"origin": "cross-origin", "name": "cross-secure", "target_protocol": "https", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "origin", "source_protocol": "https", "subresource": "*"}], "name": "strict-origin-when-cross-origin", "description": "Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."}, {"specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url", "referrer_policy": "unsafe-url", "title": "Referrer Policy is set to 'unsafe-url'", "test_expansion": [{"origin": "*", "name": "generic", "target_protocol": "*", "expansion": "default", "delivery_method": ["http-rp", "meta-referrer", "attr-referrer"], "redirection": "*", "referrer_url": "stripped-referrer", "source_protocol": "*", "subresource": "*"}], "name": "unsafe-url", "description": "Check that all sub-resources get the stripped referrer URL."}], "referrer_policy_schema": [null, "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "origin-when-cross-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], "excluded_tests": [{"origin": "cross-origin", "name": "cross-origin-workers", "target_protocol": "*", "expansion": "*", "delivery_method": "*", "redirection": "*", "referrer_url": "*", "source_protocol": "*", "subresource": ["worker-request", "module-worker", "shared-worker"]}, {"origin": "*", "name": "upgraded-protocol-workers", "target_protocol": "https", "expansion": "*", "delivery_method": "*", "redirection": "*", "referrer_url": "*", "source_protocol": "http", "subresource": ["worker-request", "module-worker", "shared-worker"]}, {"origin": "*", "name": "mixed-content-insecure-subresources", "target_protocol": "http", "expansion": "*", "delivery_method": "*", "redirection": "*", "referrer_url": "*", "source_protocol": "https", "subresource": "*"}, {"origin": "*", "name": "elements-not-supporting-attr-referrer", "target_protocol": "*", "expansion": "*", "delivery_method": ["attr-referrer"], "redirection": "*", "referrer_url": "*", "source_protocol": "*", "subresource": ["xhr-request", "worker-request", "module-worker", "shared-worker", "fetch-request"]}, {"origin": "*", "name": "elements-not-supporting-rel-noreferrer", "target_protocol": "*", "expansion": "*", "delivery_method": ["rel-noreferrer"], "redirection": "*", "referrer_url": "*", "source_protocol": "*", "subresource": ["iframe-tag", "img-tag", "script-tag", "xhr-request", "worker-request", "module-worker", "shared-worker", "fetch-request", "area-tag"]}, {"origin": "*", "name": "area-tag", "target_protocol": "*", "expansion": "*", "delivery_method": "*", "redirection": "*", "referrer_url": "*", "source_protocol": "*", "subresource": "area-tag"}, {"origin": "*", "name": "worker-requests-with-swap-origin-redirect", "target_protocol": "*", "expansion": "*", "delivery_method": "*", "redirection": "swap-origin-redirect", "referrer_url": "*", "source_protocol": "*", "subresource": ["worker-request", "module-worker", "shared-worker"]}, {"origin": "*", "name": "overhead-for-redirection", "target_protocol": "*", "expansion": "*", "delivery_method": "*", "redirection": ["keep-origin-redirect", "swap-origin-redirect"], "referrer_url": "*", "source_protocol": "*", "subresource": ["a-tag", "area-tag"]}, {"origin": "*", "name": "source-https-unsupported-by-web-platform-tests-runners", "target_protocol": "*", "expansion": "*", "delivery_method": "*", "redirection": "*", "referrer_url": "*", "source_protocol": "https", "subresource": "*"}]}; >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..5d14fca5afa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..98c847f5051 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0bdf1aca987 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..be84096fa74 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..6a88ec1b6af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e454707991c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..db69e2f17ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..a66dd71e7ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c00de6eff6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7d4bcf9e026 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..362b875a990 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..37603aff295 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..5631c1fdd9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..739a649e2b3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3ea0eccec8e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..f0153e22786 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..205080652fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..997c20e7f9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..75d49f6c151 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..d194c9b2392 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0a01767a69c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..8ef25d0cf84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..896f4df0751 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..261afde4a25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..861a79a8a72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..9939c679481 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7c908f976f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..af4d3758efa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..1796ffbd26a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f3c17e3e025 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ac209d9dc86 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f17d565b43e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b536ceb9154 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9d7dab0554f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..be3469eb37f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1f555bd8edf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4e726ad42e4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9b089cdac2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..de2c242d689 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e3d1b498bab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a58e196c216 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d55fe30299b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..09072da672d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..4e95aa3c58e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c6fbd03f014 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6b22fd7741f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d97f749f00e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..31dbd3aee4b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..df494455138 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..630d21df237 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5dd4a041bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..622fed8dfb8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..58922dff54f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3c975a95272 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..97353a61006 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..05bb00af49f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b95432cd81f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5a971b17f6e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f737207b916 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3f856286d73 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..66049331455 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..85611c41e3a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e7cfbc6efbf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..cf70132fe29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..ab0895dae0e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cb2ba802872 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..73303d0f876 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..e7f413f4bad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..76673b6d192 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e460432e83e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..17127f4d207 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..325c14b4874 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e9e00bbe397 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..851ffa37b34 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..77a6c56c6d1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3859466c7ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..044d1165f86 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a7cf5c5878b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..f08bc3e5a3b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..0c8bd4f1373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b4d0ad35898 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..dd09c643664 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..6f890f66fb4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..73ed70b7e67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..9b4cf4a4c4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..397fa9cb469 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0bd570a10eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..98fbc11af58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..6fdbce59c04 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bed9609401e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dfb505a3bf5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..21b089ea62f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fa87c44d32d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2a23fd356ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..593531dc9bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7256f7acb9c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5eade8500ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..7dd540b4afd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9fea0796a26 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5951b046bfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..985461620b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d1b4ff2ad9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f3b58ecf6fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9a8387d0b41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3453701dfc9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2f0bcb2e866 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..01ecfe03cb9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f79fdd99620 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9c7e2cc72f2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9271c730a2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d290681b870 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5fd23a867c0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..69ba51cd605 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3a5c2f19068 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3f78b2afd4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c6ff5f31708 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..24b50b74162 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c4a13032d76 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..91fd73f0bb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5f36b5975e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7ace2c03eb3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..24aafa27b29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b433c4e08a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..4b7790e5f9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..cb33a237015 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d87b4fb89db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3817c7ebdea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..322319fdf91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c13234f2dfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e30d90bcd52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..f1a38d55adf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..545632b1ce4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..ea9f21544a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..508405bb881 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eb919828cf6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..2403e94c922 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..fafeac9f988 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a35b1acb26e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3d6253e0690 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..4b65f3066c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7b0510a7a7d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..1180c3558e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..a47d8059b16 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..60e4e3c3919 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3f6fc0c25f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..5106ece01b0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..19dcc8feb6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..68889048d58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..e0c5a01d588 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4a0e0e7655c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..94ecfd4cd31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..6f0cbb6da67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1309b8702a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3016f83efbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..0f840f6b3cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3e68b26bc7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..ea102de5d22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..30ba21dbaaf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bae9cedddd0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..6547780c092 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..a45899f8680 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..efee2d46b58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..d3fd8c6037d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..f28a7dac315 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..de689069ece >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7a128673be0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..36647bd217c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e507df4e72e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..63369de5015 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b37a41a0f79 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5625e1e81cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7cfb36b30b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..29185f3be8a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..765b83bb1a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3dd15a15bef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1aad94ca47d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8c3f9cb782c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2ceb79aa4d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..20c4b42180d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d4a1d95621 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1e8b7cfb3df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..431bcc29631 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4dcfc32a915 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..364a673346f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..26ea4bab71c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9ee33a9c856 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1cfeb596323 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..cb3b22bd887 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4344e720dc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9fee107c669 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c1e09f76152 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b31b13bfe6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9b74cb5274b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9d8a29e3b21 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a978d426f66 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9a49e208134 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..18bb1796e0f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..13f4b63d213 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e5d4322651d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..02d240f4ef6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..23c93da84a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a69c7d9eb9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..7ff1c2d477f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..157dfad8608 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3ce8728da93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f3234db7fba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b946f902474 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4b0d5ca5441 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..cda5c213858 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1246a989c32 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6911bd80558 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..01b9b2f6d45 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d3020fc54c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e7b6afa183a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ab501ba4829 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ae6ed6b6f98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..89a0e8103c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..d731d349adf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..af43db93f52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e9795458463 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..d5fce9bd4c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..67f70dd1850 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a8968bdbb85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..1bd6d4d7af2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..03df45c53e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0c1848505b1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..3fadc6ed1d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a5fc36371c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..969c31bc65a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..5314bdc4292 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..63ef8c0eef5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..2f7b8143471 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..e480475c4c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1ce1f7443fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..ea76a3a17f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..5b663c86663 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f3650ae3271 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..442fd0263ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..1f8ad54a5e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..63d5d439845 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..d5be4cdd187 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..7cfe3c95608 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..56f4eb42538 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..59d9ac6f3c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..3b118b1573c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5008cbfff4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..178effac3a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..fe0acac1c2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..74cd3063aa2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..31c3ff613e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..994f4980029 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cff58b1abea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..5427c30120d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..55ea446adca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..08fd61fde49 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7baebce3242 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..d969209f05e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e27039df4cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..043eabbda9f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..c870703a446 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d0d68c255c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..add63200fd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..af83435da71 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b3f635a70b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..dd6ceec1fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..939e659235b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1ae39048e8b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..611b5a31448 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..96e809bc922 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..98fc8ae0071 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..344b7222be3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..133cb3f8152 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fcc3f8261fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..90e62d99f4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..2d4ce605db2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4094315f786 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0fa0241dc63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..62e3401af57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..31a865fcc36 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..94fbeffb5ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..9cb8d09c957 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5cc42901b3a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1b3f80d96d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..474c14bd284 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9cccded1cf9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1e1a6908efb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..4527f4c14d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5fef160f027 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..70c140a4d1d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..df2c18b63d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aa2cf696dcd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..11014e75147 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5fa94c07a42 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fbd5586871c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f60b4769396 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f1462a3904e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..168f7065002 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..690759d6ecc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f3f4eacdf57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d40be171c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b1660c56688 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f113c71f88e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..26e6fd05994 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9efdbe48b93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d4aedcd44c3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1b38c0fe52c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..26b87beba66 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..50e35f214eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1f357c004aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f7529c58577 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..295a8e28d36 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..856dfc2c996 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bf167224f84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3dcf63d3175 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a721da24350 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7ed39bedf82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a5eb6db025a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bc4dff27874 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..893568e3a70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ec19f422cf7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7b26f726ba9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a8bb168d0f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..551856e96b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0309e5d1bcc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7b0efa8262e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d19eeec61e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cf34050021a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c8d7b825023 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..323962143c3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..d74467b0af6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin-when-cross-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a4baebe8c92 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3e098eda2c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..b0a852d431c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..013fd1447f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..42999179f13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..d12ac42bec2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6f4e66826b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..803b14f3f11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..8d2050bc6b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..55234870aa0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..1010e5dd506 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..e77b1cf749f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1395306facf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..dc3edd3bc23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..f39dc4a867a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e6b1e368682 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a18f098be11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..80794c90460 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f62c0ec834c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3df5d15e947 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..0666e64d116 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e2b4add7c1b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e4037a99cb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..8b2e83b163c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e8c82ea231a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..8a996be4089 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..6e4127e8d8b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..494199fc040 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..edad55c3df6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..5a821e9be18 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dce20cd2a2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..649510a1373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..9f6900504ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e4bfb5948fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0290cc3ce0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..dca6f9a5783 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c9ade92df0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3b68e4c1fff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..dd77fa1e854 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dede23dadff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0991c172642 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..f700a2e4406 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6f2147bb611 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..4fcf8570f58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..acbbcf40d2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c92777251e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http-expected.txt >new file mode 100644 >index 00000000000..87f2615e299 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html >new file mode 100644 >index 00000000000..e30f960523c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eb283d17c92 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/cross-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..67dd39746c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a6c9d8d09e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3f699695f3d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1e4cf1c3549 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c062ad75f5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6a954bc082f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b33d61b2fea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..af5ee5bb983 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..40da41023de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6c46a9d4f23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f585f96f2fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ea42d92c611 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..67408429258 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..fbc89f63472 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bc44a661f21 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..606eb7b432f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3826723cffa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ecbd4b6c20a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..fd7acc30ef0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b7b973ed00d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1159742c7b1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3bf6462f38f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..0aa06dd0477 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..84d927f3f10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ea7aa041f98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..8c5db573dc9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..07ceb59d042 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a2f381c735d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..068f3a7494d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..42eefc7fbe8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0167f462537 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..50c0bb6d499 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..717f7c7953d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6200215d51b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1017cc3a28a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e5822235d30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d8a68ba93b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..46f518e21cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0c27795d89a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..488f24e9c14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..156c0a79114 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1026f7c17f2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0b64e16698c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..13734caf4c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cdd2f42bb07 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ffd5e02938c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f921e398c87 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..506e6b9c09f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a514e63656e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..739830636c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0a5795b2da0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..1a9c7a93359 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..d0044e5908d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1320c49186e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..bd94fe57b2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..18de1edc8e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..33316f819b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0b923150566 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..48f57a97c61 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..577277aff76 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..3ac3bccf5c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..2d05a1e8a09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6759efafc16 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..d0037d4b36f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..0b968145541 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d8e4936dd4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..9a264e69b11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..b2b7ce96cab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..264b28609b0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a8ee8b3995a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..3f497621ebc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..21a3e85ed7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..0ba732dbc46 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..b8d150d39aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0bca38bdaa1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..ae716116b9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..16f7ed4ec07 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..baccbb5c5c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..eead4be52b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..32b1e0dfab8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..486c6048a5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7ca9ebf0a55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..5299292a39a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e316eb9df70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..e08ba26d84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..2ff8ed8e516 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..66193b0d1ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..36125e3bb91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..6fcf861fd26 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2f977a290fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..064b082c8ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..f523700deef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..294793aeddf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..7f47c4dbb6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..41d8dfb4063 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..594ffb5a1e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..a12343aa07f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..b7357a73361 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3476cf603df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..c6c2bf36c9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..af24a7c3a0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d144c02d1e3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..59b3752c8ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..a70b0e72e38 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5722e836581 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..af9f72d5bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..03018d57bd0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..34317c82734 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..76a388b62df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..42e86391b26 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ad0d6238b22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http-expected.txt >new file mode 100644 >index 00000000000..bab1725b978 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html >new file mode 100644 >index 00000000000..09a483fa928 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c085ba17f52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/same-insecure.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d6c1eee7266 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..614d050f1ec >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..45dbaa9adee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2f3e924a6b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1bcb11e8e06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..44accdbf074 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dc0d9ca7d63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..744d2ef10e3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7335a204365 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..79b9bf587fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..84b48ea87d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5829d7fbd92 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d225f9beccd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b6b7315f641 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..28e893c6cc0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..796ae832baa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f1a842a9161 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8c226d82ee9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..22c5bcf2e43 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..bcbc4fa6063 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d4886e9d455 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..988290ca855 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..dc49acfd7bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b9ec0ab9a04 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4a766eb47de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5b1f0f8a5f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1d49175dcef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c40026e5ae7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5cc2ca54a08 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e849ef2824d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c26459c46d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b5304e12221 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4f185f4352d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..873e1cdb0e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5cf441b8bfb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..797be929911 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..76830d47444 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a259914ccb5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..481865c5017 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f3989640a94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..20148fefbc0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a3c32a202f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..100f1f09113 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ace1c310142 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7fd932e2d98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..38cfca4fcaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..8479327c2a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title> >+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> >+ <meta name="referrer" content="strict-origin-when-cross-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin-when-cross-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7ee29e4add1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..eadf66cd54a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f6b970af922 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..996ae98d109 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..be84096fa74 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..792597f6ab1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..af143131e32 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..db69e2f17ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d084d7d0281 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ecb2330fbf3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7d4bcf9e026 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..bea3f45b42f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..41880878411 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e5e6cbb2630 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..96a6b20c97d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..67ac87181f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..794569fd077 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..0dc1eee0d87 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e60830e305d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bf29bd9fba7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d19621cecd1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3a550f5253d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..df0a4ce62a7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..957091cae3c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..522c4201e56 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9c5e02665f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8dece5695f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e2bc6b29feb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..75b2f34338b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..1d8dc4aa39e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..433d5e200f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..64d45892fa1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..068d7533951 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..31244afad21 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9d7dab0554f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b100c0667c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4aad4ce9b62 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4e726ad42e4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1303bbed50b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bb0dede3373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e3d1b498bab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d311f8e74dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8ce41146b9c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..620f8e7e456 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d3d12931b34 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8a28a632c08 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d8bf8099f27 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9bed9572ff2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d30af14380 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b331777ef64 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..18cc457503e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7337e5ea283 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..cf671b85bdb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a94c064241c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b21569ff2f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7833ae66753 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..4bc11069cb5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..87be77c1234 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..309d3b3e0f1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2d3bc04b7e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0fd5c418d5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..aac36c17157 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e88fef892a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..88be1bdd7cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a59d2931df6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3e1ab9b5993 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eff3e71aa5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3f550ac7594 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3d7ec735d6a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3e88cb0ebb8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d4ee19304f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..da884876476 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..292b1c49bd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8846efb4d1f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..330715606ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6f5c50e60cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..42777bfb598 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..41dc81c404a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7eecb47ec09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..042da7eef47 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6598ba613c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bfd1329751e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a0bf2132e08 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ecf97d6f5d9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..01622d1e5d9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..421125ef917 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..327ad157116 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9fe917f634d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..59b91c439eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a98a8bb315a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2ac8a53a743 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e1b37b686c0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1674455a5d1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8bbe7ca0154 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2a23fd356ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..066047220a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..924f174f7d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5eade8500ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..7dd5bacbc01 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5d9f1275096 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5951b046bfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f05e57b3573 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4ee2db08a7f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b3567641f83 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..371633ed2df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..46452ccecd9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a494d76c770 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d3efe045593 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b52fbb7aca6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..28fde8e11dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html" >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html" >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..e1efd9f8b89 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fa5de174d33 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8942c2755a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b1548cbcd90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b9ecdbdaeff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7edfa2e4351 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..83ad16ec11f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b57dd4d5e1e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4bdd35c04df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. assert_equals: Reported Referrer URL is 'origin'. expected "http://localhost:8800/" but got "http://localhost:8800/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d55fc452fbb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9cc72035470 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7ace2c03eb3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6ca3f08f728 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..50668d61ae3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4b7790e5f9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..0dd755c1c1a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..426f3994678 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3817c7ebdea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..143fb97db81 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..85885ae42a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e30d90bcd52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f5d37d11e0d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b4856d3fb21 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ea9f21544a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9e52e01675a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..be9f5de8b6a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2403e94c922 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..fa8842df5a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d9b36b79612 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3d6253e0690 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..43dff534e21 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..881a60f3ac1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1180c3558e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a72f47dd4ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8bd0f2805ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3f6fc0c25f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..1ff937f5767 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2d56a13561d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..68889048d58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..59b7ba10708 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6a98252f5e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..94ecfd4cd31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3179c6ecbd5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eb277d37010 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3016f83efbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f62209fe6e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bd06e9a6d68 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ea102de5d22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..05e2c7ea8b3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..31745535c0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6547780c092 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5fbbc7e5180 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ae0f7cc6c02 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d3fd8c6037d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8f895f658aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1496e51703c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7a128673be0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b3c39fc9f3e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e470265c228 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..63369de5015 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..8b06f445e85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8cdb4c21b51 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7cfb36b30b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..89b288f85ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a545db27d74 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3dd15a15bef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..dcbd51e3b90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..151a89b773c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2ceb79aa4d2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..e4d0c83510b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f7394d55de5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1e8b7cfb3df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2d55efbc28d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cf480d92e32 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..364a673346f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..04f886a39eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..75c8e435bc1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1cfeb596323 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..fd58e4e70ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1a797aef0c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9fee107c669 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c06869b7b8b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b6cfd0de185 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9b74cb5274b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..adde522b522 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ced9b2d8e55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9a49e208134 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..51d88233bfa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..941c95c8469 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e5d4322651d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3e5400c007f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..611a5ddb472 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a69c7d9eb9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1c47d057f14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b9ac1b02acc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3ce8728da93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..0a8e19556a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f6284586836 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4b0d5ca5441 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..0f894d0a416 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..56fe9377572 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6911bd80558 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..7df421d68a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2c43f40341c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e7b6afa183a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..65a0315226d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1baaa9c92de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..37c0ab66dcb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5f39f8933c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d4149816f14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8b4e7f16a1a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9b405a8ff74 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2f893d3f15f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..130456e69d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d84c7f5904c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..62eb0815617 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0c1848505b1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..207eb95f8bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..41eec9a63ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..fd703f491cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c371de93ab0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a0697f1485a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..53579c92a0e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a76bc5841c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bb9b50982ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5e7be7c3ef9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..0bf104829d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..520ad7213d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bc0e22c0df1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..24900cd3ba8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4ece2e8ef36 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d17b5814704 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3da8fda74a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d2465b6e0fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..59d9ac6f3c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3c95f290262 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..14ba9015c25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b8fe04b732e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..52b7fd3c93b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..885a3e20ef7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..27f17fa506f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5b417f5fa0e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..05f941cdaac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..241c5e42574 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e3cada3c95c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..29c555640a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..15277bcb7ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9c2223229a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..696209b106a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..043eabbda9f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..956f83b91ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b587d6ee664 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..834756ca877 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9c90fc295cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..10659cd6171 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..28feb12b7bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..7b605a64df4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2b27ed40b31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..997ac819619 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e58d778fe17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8ea83814e44 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7446fbf2060 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c39673a685c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0746360a125 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..54442922128 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..39b3d4d5a03 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..427a5bc1950 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..982f0e0b2f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2b1537c99d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4604fba8414 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..94fbeffb5ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b7fc76ffab3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..060406cb16a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1b3f80d96d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..42b67db7bb0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..641dda354a7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1e1a6908efb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..575ad28f89a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cc5b73e12d3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..70c140a4d1d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d14b0b5a377 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..58c925eefe2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..11014e75147 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..80052e293d9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..43bf0304668 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f60b4769396 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b797c7167ed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..14fc5bfe2e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..690759d6ecc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..e3e35115f51 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2a08267e969 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b1660c56688 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..34ee1e680a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1a64be49c09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9efdbe48b93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ce2a8629bdc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ebfc5cc027c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..26b87beba66 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ba28809961e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..41ed1372854 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f7529c58577 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..137aa0a469a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0c79c37ecb5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bf167224f84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..dbde2fcde46 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bb4bf38d122 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7ed39bedf82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2e43ff0392c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..914b5facbbc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..893568e3a70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..09f4fd3dac1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6773e462d7f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a8bb168d0f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5e664817c57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4a3261a2eaf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7b0efa8262e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5f0426410b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bb0b7919a67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c8d7b825023 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a70b6773a5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >new file mode 100644 >index 00000000000..07af8e286fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: strict-origin >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..28da45c17d6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3e098eda2c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..27cf9918048 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c6c23835f8f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..42999179f13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..4bed5f9bf75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8ea11b1f7c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..803b14f3f11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..1e0ecb22618 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..49908a9b800 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1010e5dd506 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..637e63db7a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a4dc3875674 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dc3edd3bc23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a7713596022 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..80b8e7bbc35 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a18f098be11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..84d8cb7780d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..299405f1199 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3df5d15e947 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2283585fa45 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..05fb180c832 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e4037a99cb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3786e3c2ee2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d2cc58c4d4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8a996be4089 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c87dad26607 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c6d501add9e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..edad55c3df6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d7c00a2cbe0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e72e02b0a82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..649510a1373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..bdddd53ee04 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0ac3554a2cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0290cc3ce0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6f51fe1845e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e9176c3a617 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3b68e4c1fff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e30392e0f96 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bdf989505b8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0991c172642 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..79ac18fb22f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..11370694e90 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4fcf8570f58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..7146324b317 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eb14a9e41ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..87f2615e299 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..20250b21f83 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b84aff51e11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..67dd39746c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c7bac19efea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4b12fab36e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1e4cf1c3549 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..72e3f0005bf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..91cfe13458d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b33d61b2fea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b11b48f2b70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1cca78ffca3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6c46a9d4f23 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d1fbc240322 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6a02768dfdd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..67408429258 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..79161c901ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..90519669e06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..606eb7b432f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2284e99ec7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f0161f56dcc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..fd7acc30ef0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..532ff5f00cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ff43926403e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3bf6462f38f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9f98c017984 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d0be8e739d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ea7aa041f98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..e7c6aba4352 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3c59675bef9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a2f381c735d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c6acd2b5dea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a403cce3ef4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0167f462537 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..de84f49ced1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9908d120eb2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6200215d51b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..42190ffdb98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..47b8be3968b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d8a68ba93b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1396c3194bd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..21f3bb5895f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..488f24e9c14 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..14869d14cda >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..754fcabfe62 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0b64e16698c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a332aaaca37 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d4f385c42de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ffd5e02938c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f5b44c6dff9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a86c3d1d744 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e14ecdbda50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9c85284827f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e474f7c086e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6389bbea77a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..1ed6966d7c3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a57406cf84e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c36b1949bad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..33d85483930 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..24cc5f105b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0b923150566 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b6d35027965 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ce0ab014db7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3e46d64e2d6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..bceda6b6222 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e3b756bd0c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3d091bec4c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e4452e8889f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ee47affd4be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6d014a66296 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5ec40bf6127 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..82bf1bf5e50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e710ddd206d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3f20ecde7d3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..049245c0a6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b502e2b73c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..bec41c1ee04 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c1e0a5af4f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ae716116b9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5751b140f39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e5124bf9991 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ef3ff1663cb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..63efc923d64 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bd2c76767f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b7851b167f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f6514637935 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c63b187862f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..83b99148f10 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8631f9768b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4e81901a936 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..43856325bed >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9012a8b3b7b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b29418e0828 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..064b082c8ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..34dcb856a52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3f45299a970 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..728b9f31b6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ead01d68363 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..92bf2b7f05f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..750c26b7f77 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2ded70b2f4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..72cdef04913 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..988c59c67ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..0807c9cf5cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1e32349b530 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..329e1920a22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..43d514d8d01 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..091bc9fd134 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6feecfd4a13 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f96c2bc5b76 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2ba55f94d5a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..498961b526d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8f24883a35a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ff6f964d9de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bab1725b978 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f8cef232a87 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4759d52b8a5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d6c1eee7266 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ae72d6df240 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..721c01234c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2f3e924a6b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..6ba8d503428 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9e1c1669c50 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dc0d9ca7d63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2a1c02fbfe7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a3813da5a4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..79b9bf587fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5d2f1ca9e6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..21fae907f25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d225f9beccd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..8c9214bcb26 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0447b3af081 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..796ae832baa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..88ef542d163 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6e56ecb9a41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..22c5bcf2e43 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ff9fc6dfda6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b782eb43ebf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..988290ca855 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d009ad41b82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..32d8746dbbc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4a766eb47de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..56f21b478cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a898964c60d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c40026e5ae7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..8bbeb71b993 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..750e1a05a6a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c26459c46d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..0dcdd09671c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..68363250df1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..873e1cdb0e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..e5f30e2116e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a1a74b61647 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..76830d47444 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ffe6cfd0fd8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aae4cf3fb08 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f3989640a94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3bc89e8aa80 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8a7dc5a3c9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..100f1f09113 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..fa5f9600d59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..665dffd3bb0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..38cfca4fcaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5523b92f215 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'strict-origin'</title> >+ <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information."> >+ <meta name="referrer" content="strict-origin"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin"> >+ <meta name="assert" content="The referrer URL is origin when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "strict-origin", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "origin" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..52b719bbcba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..990efabc695 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2c091a19091 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6f955c72a06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1fc873a454c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..cafe70e7b5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..56a936fd59a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..23f9b1323b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..571ecb99fb9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a95053af6e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6253edf6c97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..59d593788aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4a19327afb9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6b4f10d4c78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a9ca0f209d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..40a439a4b2e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..532bd8ecbaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..02ea40247df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..268433e6eb3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ead412f1bdb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..a8376076e9e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f322e0589cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..90045dee569 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..02d24f43981 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c9c6a5869a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..de2d44565f7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..a57cf27cb9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b83728dd578 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1898e934ae7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..2fde9f85ca8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0405847073b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ef4a55dadf7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..1f464c65115 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..56528b47357 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..eaa41450e75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..fbbefcfc327 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a3d0e293271 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..cecec56b0a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..5f476997226 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3e3adbb0433 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8258484417d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..dec87409692 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..516d52e7a11 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a8585b702d3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d0ee8283b49 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4e28befc516 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..88be539d01b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..3d7deb5d690 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a414c3d430d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..30bd98040f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1e1d7cc7d06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dcc163a6f93 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ca9746db02d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..2ff7491aa44 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..61d4dca1d94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e19bdbeb872 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b669e643b2d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2b2bd519d7f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d4cfe7c6326 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..96297ef373a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fcf231928db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..66049331455 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..fc280d887a7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1c3fe795f03 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..cf70132fe29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4f41d3a9b3a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fa77b749e4b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..73303d0f876 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..5e1fd3ad072 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b16e6b6f8bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..68aa70732ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..091e47be9ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6bdea2357ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e9e00bbe397 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..2ac8da1378e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1ff5c5fb342 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3859466c7ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..9b861d9028f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..751549e7a70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b8460ce0c2c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6873ffaeca9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..34d4b53b776 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dd09c643664 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..362df9ada72 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2b29695fb97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9b4cf4a4c4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2e89b249fa0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..13ee58f0674 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..042f3429b78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7ea56f60dfd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dc2ce5d7970 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a644e8843de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..dee2d6d4912 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f65fd4fc7f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d583de98a49 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d72a6fa952e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6df4fd5fba6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d0d0d2bf01b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2f5f1cd7f4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..42012028ea4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a5f352f6fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..be9327362f2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7eb8349e253 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..24a1bd0c1bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b1156ca958d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c3a19e25058 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..34a29129bb4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..8f6459a49fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4bc1c9488ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..70a49a78f94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..72d2fea16c1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..85b6a51f92b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bc0d7e076c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4bf19c93d71 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..790f1ed2a8d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..99d7177f0e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..667a01425b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2da5d3c1b44 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dcc397371c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3ac4b60555e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..dd8eecdef59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1b59a490d82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..44d2d7ff531 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ab72582b750 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..96d736a4c00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..2f27941d33e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..143e3991228 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c581e856eab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b75f8d3c179 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d6df0e1c06e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e0467612699 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..86c2a31212a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bb8b276f8e3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a67a7126c17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ab9d5a2b934 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9de5008c1f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..539214d8b31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..d421be327aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2bb2c3fc74b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3dfc682fbba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..82624d67db7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2699c192079 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ca550793318 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d9503327116 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8165253407c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a54dd6a9a4b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2de08cf93e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2a51f9b6a2e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bcc516b2c6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b19e9c63736 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4a0e9f32a28 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..88eb03212cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..70cdab12318 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fb2219440db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5dd469e812f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..896cb0ffe37 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8ba53cde585 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..73f6ee6e59b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..baa966698e3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c029be9cab1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..001552045a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3c8d120751a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..375f9a7dec6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7818a26a583 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..410b00d95ae >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2bcd00d050f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0ea5f65fff4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f469e2034eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a6a98aaef1d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d84e3692a8c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..cb5137b7110 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1a1035e9cf8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8fbc71adde0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..756fe3d4128 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5061d250e87 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..06995e20501 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b7651581b8e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..aa5bee68448 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5a1fb0e893a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ce86369596d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..17625998c01 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c0cd60fa55c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f1d12065c07 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2027f5a2d24 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ac464d80630 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..9f7a47c8262 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e956445be44 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..b0d981232d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..ec2dff0e842 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4bc0e90c548 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..47e34206d0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4dd8bd2b860 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..98c2c5ed599 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6af2c171ca0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..edb482fbc03 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c3ebec69c95 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..604e99ccadc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1d631cfd83a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9ae36c07369 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..38365366aac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d6cfd058bc4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..276fd105040 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2297f42baba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..ff8a7f68c5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5fc7f7d733c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3e436402f54 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0c6165860da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0daad3e1a49 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f614f775731 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1ab7f58d797 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c7670731634 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..243f04fe371 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..9e850de0579 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..919f582d57f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ded57c10f2f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..41f07968946 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a3b5245e8ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..89a0e8103c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..1f93d7f0e47 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..73fb55b950d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e9795458463 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..178cb8b1e25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0e3cac61a1f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a8968bdbb85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..037b8e9498a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3e6c6754635 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0efcb5c7523 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f4b3de94b4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..43dec2352ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..969c31bc65a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f690596c58b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f47bf99454b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2f7b8143471 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..42e366cb1d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5e1c44456be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8708b00c608 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..2b53b402bc3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..961ca942155 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..442fd0263ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..13af9b92e47 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b3330cf8b00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d5be4cdd187 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..5eacfc71beb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..398984fda59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..df30d7bbbac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3d5a0f56fbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..de42d1082cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..178effac3a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..aefaa47a7f9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..893744dd9e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..31c3ff613e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..3443749f66b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3ecb49b2035 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/module-worker/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5427c30120d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9fd91229678 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0c759e960c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7baebce3242 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..3250c6e5192 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c4015f5a81e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7db65da50fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..cc0a5b952b3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2fdf4fee84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..add63200fd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d18028876a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..704bc502cb2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dd6ceec1fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..44f058b9c8f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b354e14bc9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/shared-worker/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..611b5a31448 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..46bcf18943b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..137950949ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..344b7222be3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..7dc7b6247ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d23669fb25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/worker-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..90e62d99f4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..71c77a981e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..80a6c5888c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0fa0241dc63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..da2e9749c62 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ebee89ad62c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f2f22d08c67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..78a52999a02 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..286ea765869 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ecccd5f1183 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..728c0b9fe40 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9e707cd1e0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/a-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..32614d71cd7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b01056a5928 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4833f0f168f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2bf92bd04c0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..724609f9149 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a1840b7db1f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..85a3e108f5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3cdffe67ffe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0cd834dd5dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bdf5fb09e5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f1575cb70fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6cd3331da0c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3f219f9bcfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..796a330f30f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9984500bc7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8e0c78a113c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..131c10be9be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a29f99a58a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..195c6f579cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..912467477e8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c56b03a2e25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..76bcb2334ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b3412f7d80c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9e2a3ae3a6e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9da789454f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..be489bfddcd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2809d246286 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2e3092ec220 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..8408e1537da >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..95572e7bf9a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..64a6b468944 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..46eabada371 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7b3bac85555 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..6d0573fa6a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b78455112a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ab2ebb9d730 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2fe5ebd809b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..cb1a94b8680 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8b65c7d4f0d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..9db93cb3465 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..12e87e0847a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3d46ebb71dc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/no-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..49ed9bc9548 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..d09ea914be8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <!-- No meta: Referrer policy delivered via HTTP headers. --> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >new file mode 100644 >index 00000000000..c67e5215843 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >@@ -0,0 +1,2 @@ >+Referrer-Policy: unsafe-url >+Access-Control-Allow-Origin: * >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..00c85366e8f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,18 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html.headers >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dcf1f10a491 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..a20cea74b25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..517b9c3449f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a942d320a6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..586afb4acef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..66a1d0ae534 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..982a7f390d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..292fe3a636c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0540352d5a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3e34c73a83f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1483bebbdc9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..31b41b54b70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4a45e72d373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..17a4a30a9ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..343b9788e83 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1b43cc6356d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b699abdddbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7740e513d7b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e57224b5c86 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bbc37575bd9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..572c48d35bd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..fe002ff77a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..89c51bc9f03 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ec4a56c91cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f880dd5e16f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..3268adea80b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..42590e25261 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..131a07f19ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..54b5692df97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..51796fb7354 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..54320d08bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6f196270e9e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..81381edb67a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..37bceadab92 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..eb060a8bbe4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c83b272572c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..609cab7fe95 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b1254a01895 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..62cd43f6e34 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..59f6d6e3e7d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4824a3a1725 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c6352f7ae22 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ff94f3db9de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..853cf0f639e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fcf5d4c4411 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2265bdd3088 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6a15feb308b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..191d362f5f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..52222354ba0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..d83a1411362 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ac7b65c3798 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bc91342f237 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..8f5f30e65a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e9340d87a21 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..05c152ea136 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..4eda9b843eb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..745be254693 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..14bc1da7e2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..f8a8c2235b5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0d2ee5b43e4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2b399804c98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1c120f03174 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b27015d2bc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..11391383837 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b2ed1f2a4b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a185a569616 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a988c656d5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..e190427a1cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bbaa5221c54 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c7ede2d1410 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..07ffaf428a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..69c6ee4f3e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5c98a00032c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..9651117f5bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2496e17f409 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5fc3169e193 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..20c08a716bb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d4f155361ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..2d14c83bae3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..0b306eb6fe1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..82a3c533688 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..015de53de39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..d91096748d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0aab8d43784 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..dc7735a1b58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..346efd7b703 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8e0dd88ffb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..acea11340c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..1524fe75ef7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cb66dfebff7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..44e7bdde1c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..2bdcedada2c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ad16645bdc2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bdfe799e185 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..039df094f3c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9f68a64f409 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a514e63656e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..b4dcff3d96a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2d6da9ef2a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1a9c7a93359 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..548efa17cbd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5f991591969 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..bd94fe57b2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..c8832328a7a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b0bdb90470d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..220cf31bdfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..600a384a030 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f108e5d1808 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..3ac3bccf5c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..51e067dfed7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a14f3c06980 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d0037d4b36f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..93e2e7d60a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d6ae21f11f7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d924d233983 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4bacdb7d0d0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..abd5f4964fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a8ee8b3995a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..7269727302b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9f6687c3227 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0ba732dbc46 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..83764468686 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4a868029ef3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5fc2b605d20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..9f3426e3497 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1a0fd46075d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..eead4be52b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..3cfbfc69836 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d728836d57 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7ca9ebf0a55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..ce4eb22b3c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..70a4fcb08ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/module-worker/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..e08ba26d84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6e88e62de39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f8ae53acdc6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..36125e3bb91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..6ba93c949a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..22d3d7d5aa9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..98518f8ac84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..06498b0a154 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..51a79999357 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7f47c4dbb6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bf535f51d2e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b636a48e1c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..a12343aa07f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..c894530bb07 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6f654bdfdfb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/shared-worker/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..c6c2bf36c9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..8ce347a651d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3f287f89dc0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..59b3752c8ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..15b9c1e3e1c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b017aad2dbc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/worker-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..af9f72d5bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..bd59c62bed1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a4e6af5c08d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..76a388b62df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..3252b205203 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3f6212dc223 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..8fc43fc7ff1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..806e1fb2b17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b9ae6d11d3c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d6277eb34db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e06e2f9b8df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bc5a64f223d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/a-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..37f60a4a1fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..5bb6055a596 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e815d6ccddf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..25011a38355 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..336792a860f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1c6f4d28b81 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..ec7c61f8243 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..b0db112d2e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c825205b1bf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f166b2b08fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6462ab026e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..055299be4d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..7addea4045c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..3541430743a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6ba18197347 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..f52f9ba1a78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..082d5a98934 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..012fe286144 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..0a1d3260c2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..33520d4c383 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..11d7f3a09f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..5fc5e7b31dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..1a74dd98cb5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..212ae7ed0e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..1e6778446ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..6bb1f146470 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fbc08490232 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..15fa08d781c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..4398edcf9f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5764aa60ab5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..97d706d1481 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..e148449dabb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8f41d718aa2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..d8438b499f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..966bcab0dd1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0e7ea69b374 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..cce2a4ad651 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..73b629724c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cf9753c4478 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..4c06d4b2d52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >new file mode 100644 >index 00000000000..d4dda347ace >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3780dd05e4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/no-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >new file mode 100644 >index 00000000000..af917847891 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >new file mode 100644 >index 00000000000..c0cb708a89c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >@@ -0,0 +1,39 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is set to 'unsafe-url'</title> >+ <meta name="description" content="Check that all sub-resources get the stripped referrer URL."> >+ <meta name="referrer" content="unsafe-url"> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": "unsafe-url", >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..339d4f63242 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unsafe-url/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/generic.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..990efabc695 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e291b25622d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e5eed7f0b77 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1fc873a454c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b601eac442c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c3d050caf24 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..23f9b1323b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8afc306a5ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..df1c506d167 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6253edf6c97 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..284441d9529 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..060f2608889 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6b4f10d4c78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2b2d2bc41ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f8339b0c546 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..532bd8ecbaa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2d6a2257650 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b6141df0731 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ead412f1bdb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..883c4caddc8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a48634683ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..90045dee569 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..1060b3a3fdf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5988fe9efe8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..de2d44565f7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..62c1bb6b13a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..517ef9157c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1898e934ae7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..254b585a6aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0b832552d4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ef4a55dadf7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2cefa7d7a55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..842c25cde5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..eaa41450e75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..38b31583fe9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e161bc84746 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..cecec56b0a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..75529cdac19 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..422139cd09c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8258484417d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..053812ab43e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..993df99c900 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a8585b702d3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..16019f74b96 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ad71bf6b273 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..88be539d01b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..8d1c47429a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..59f2822692e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..30bd98040f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..7ec5986c538 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9bb24f13382 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ca9746db02d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..971d72f269a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7203594b1a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e19bdbeb872 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b5d1a81244f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e50d853dcda >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d4cfe7c6326 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..520d166fbc5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..34f4646d0aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..66049331455 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..32ac74e3636 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3afe452e245 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..cf70132fe29 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..50ae745b422 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cbeebbf0f8c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..73303d0f876 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..fcfba132f25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..22881063a89 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..68aa70732ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..7b227863492 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..88f791d20c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e9e00bbe397 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..7b05f73b014 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fbd6d48a8c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3859466c7ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..cdfcef9f6a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2d39d0adccf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b8460ce0c2c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f1d62e85da9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d5316851c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dd09c643664 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5194038e4f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9636e29744c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9b4cf4a4c4a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..7bb8efe9edb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a575b7eb458 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..042f3429b78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a872a8ab191 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f99b0fc0012 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a644e8843de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..53000e7c218 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..06ea416e5e6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d583de98a49 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..efbaf4f75a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eaba5cf6cbc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d0d0d2bf01b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..978b57918e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ebf489cc4b9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a5f352f6fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..5654b4acaf9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..05dbecf919f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..24a1bd0c1bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..c1598b359f2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a38f8d63304 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..34a29129bb4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..17cb27df3d8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..559a5f7fa70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..70a49a78f94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f5133f94c5c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..14c7efb7e2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bc0d7e076c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..de4788d03af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a2695bfd4c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..99d7177f0e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..13c40a28128 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f23e4c5e84e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dcc397371c8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2c8aa643e08 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the attr-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "attr-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..83812fb3617 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/attr-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1b59a490d82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..dc33c3b3976 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f60094cc912 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..96d736a4c00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..297561ebfab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e15ec9ca9e6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c581e856eab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d41f5b3c7df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..004ba40880d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e0467612699 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3d7d6191032 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..42fa3bdc062 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a67a7126c17 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..17e4aad57b0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0a3d57b80c4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..539214d8b31 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..980330031db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d789b91a5f5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3dfc682fbba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..680911c121a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..046508009d5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ca550793318 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..0043cccb481 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a0bdc2ac185 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a54dd6a9a4b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c21596e95ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cb724c09197 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bcc516b2c6f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..e91495b6765 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ea1c313d940 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..88eb03212cc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..381891560fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7a5ae700fd1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5dd469e812f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ed4a807f2ee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..55716ac02c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..73f6ee6e59b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2079f95ee4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..0f337658c8a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..001552045a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..eb8677f1be1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5ecb5bd9399 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7818a26a583 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..bc3d297fa65 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4ef48dc38dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0ea5f65fff4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..eac37782a55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..554b234be1a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d84e3692a8c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..98230e1c097 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8c1cfc138b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8fbc71adde0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..edad4c61f59 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..eb7c9f42750 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..06995e20501 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..81d67f9619b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c78b6fcfa16 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5a1fb0e893a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..852cfcc7276 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c2143dae207 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c0cd60fa55c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f46bb775d86 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c7c9f74714 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ac464d80630 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..faa3ecc5b26 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..70ebacaee06 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..b0d981232d4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9982670f2a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..992093d9d1a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..47e34206d0b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..794876ce236 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3a058f2984d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6af2c171ca0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..65694ea8ef2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..925aec679a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..604e99ccadc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..bc5fd8f7dad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..c9afa9631e3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..38365366aac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..6d21efeb108 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bfc4c3e8348 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2297f42baba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b62b8dfd19a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6483a7fae94 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3e436402f54 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..915b89d0d82 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6056b286229 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f614f775731 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..24f64dcd266 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8b4e6f553c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..243f04fe371 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..25f7b70fef2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f038f3d347c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ded57c10f2f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d50c6124ac9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b2c9f40f2bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..89a0e8103c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2865c75d9a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..298a96b0e7d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e9795458463 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d380572c889 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3b9f81d9553 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a8968bdbb85 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..babc4da1eb4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d5c29653325 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0efcb5c7523 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2b416d9d9c7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5e9f0057da0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..969c31bc65a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b4610eec301 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bf17de2e7be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2f7b8143471 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5d4339beeee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..81d8addcd47 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8708b00c608 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6fce0113fa2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4b851229681 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..442fd0263ba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3e390334953 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..052a6887d45 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d5be4cdd187 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..fbc85115c58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..08312c17157 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..df30d7bbbac >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..606fa45a9f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..91b8b63cfb9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..178effac3a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8e8b4171f61 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8a56283c0d9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..31c3ff613e1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..1ca701f83a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5b7faabeb1f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5427c30120d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8fd755b7324 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d6a70203d01 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7baebce3242 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2c23d01e031 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e601bf325fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7db65da50fc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d9741ac502f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8e10faa799c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..add63200fd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6f2468ed73a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e037d5a8f61 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dd6ceec1fbe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..5a33342e331 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d9331af398 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..611b5a31448 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9d5f839b697 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..59937001535 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..344b7222be3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..be690fd1ac5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5a8c9b4222b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..90e62d99f4c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..77fdb88b0a4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..00350939d7e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0fa0241dc63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9f6c2b9e090 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..be7bb34b196 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f2f22d08c67 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d2839e7fbc0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fbebedc42f8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ecccd5f1183 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..223ef23df6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bce92d5aaa9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..32614d71cd7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d2c37e36e88 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..70040736e7f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2bf92bd04c0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a9ea7a4cbdb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b3a3f0f70f4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..85a3e108f5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..344e99468e0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..82422bfbe33 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bdf5fb09e5b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..74b759eaa41 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9b6b7d9a332 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3f219f9bcfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..9c41c2408e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e6c7afe34ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8e0c78a113c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..afabdd7c4a3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9dfb965dc78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..195c6f579cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3da7d6e7932 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4e98316653d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..76bcb2334ca >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3a23209ca1b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b8c48281066 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9da789454f3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..25ff9fedb69 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..588e8e021df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2e3092ec220 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d90818e03aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9975f1f7f15 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..64a6b468944 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..e78acc588a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..576f7fce6e9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..6d0573fa6a0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..424becc9ed3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4543d61f2ef >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2fe5ebd809b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..06241a094a8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1d348bb9353 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..9db93cb3465 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..548fc0fa27d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9c02dfdbee5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..49ed9bc9548 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..89c4f67e788 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the http-rp >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "http-rp", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..14c2e2a3228 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/http-rp/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dcf1f10a491 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..13269e2374c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1f31bca6613 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a942d320a6d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..c6af90667ee >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5f4aa6a0e88 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..982a7f390d7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d94843cf8e5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f4d155bf1b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3e34c73a83f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2427b7b1d9d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..596cdc2fd63 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4a45e72d373 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ce86ed32d1f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cc2b5283b54 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1b43cc6356d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..31ce151f68e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..9f13fdf5736 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e57224b5c86 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6be901d18df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..67794ce3801 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..fe002ff77a6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..6fca264dfc2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ff42915d390 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f880dd5e16f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3d03ffc03c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1468fbe64ab >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..131a07f19ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..0e6c3832783 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fe10d91cce0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..54320d08bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..7106118fa35 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5419847fabf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..37bceadab92 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..8ac0b0b7db9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4a8a81af83f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..609cab7fe95 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..f7ca8733723 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2f7c82b832a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..59f6d6e3e7d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..705d59b5d4d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..685f8c88b4e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ff94f3db9de >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3e848cd41be >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..88660c53e75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2265bdd3088 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3606c5aba54 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d6900a4a1f6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..52222354ba0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..13e1494b527 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d96039a0bb5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bc91342f237 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..93960a12ae7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f68097db9e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..05c152ea136 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ea1dd0988cd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..242eb81a96a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..14bc1da7e2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..0d6c638efdc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..554010e8525 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2b399804c98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..11755f981e7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..39fdcb49916 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..11391383837 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..0a1aae62411 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1eff8777586 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a988c656d5f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..2f81ef0d6fe >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ce689f97d09 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c7ede2d1410 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..373ee4faeb7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5c9ba5ec188 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5c98a00032c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..0d4be355e34 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..341e790fd6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5fc3169e193 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..75a741a893b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b0bfaf439c3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..2d14c83bae3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..62664614453 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bb1b7812882 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..015de53de39 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a6dfd3774a1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..b4a7a697bc8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..dc7735a1b58 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..33a64705f65 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..03a438e7c73 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..acea11340c2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..a8af3f121e2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bc8ce2c291c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..44e7bdde1c6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..de0ee672f25 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1a44e2a502d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bdfe799e185 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..d44be78097c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is cross-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "cross-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f37ad1270af >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/cross-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a514e63656e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3f03093ccd4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f627bbd2f3d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/a-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1a9c7a93359 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..a3f4330e811 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4d83daba5aa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..bd94fe57b2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..eea0a1b0777 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..88d7d570772 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..220cf31bdfc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d0302557ed7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ca19d21c038 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/fetch-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..3ac3bccf5c9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..796d6e1dd30 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ecae9e23e7a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d0037d4b36f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..b406297bcc6 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..a44cc67929f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d924d233983 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3f2d4cb9415 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..57f8bc02c00 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/iframe-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a8ee8b3995a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..2db6b9be449 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6c7c749ce36 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0ba732dbc46 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..066862d3b48 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..78fdb67a6fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5fc2b605d20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..24e5665f192 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5c7caba90bc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/img-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..eead4be52b4 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..85e5f3b8093 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..40558cd2d48 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7ca9ebf0a55 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..d8572397c20 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via module-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "module-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..bcea06b12b7 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/module-worker/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..e08ba26d84f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9ef2d4b55cf >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e7d44c40762 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..36125e3bb91 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..19f9f506205 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..e87dadc3adc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..98518f8ac84 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..cf8accb0574 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..4897e31bc1a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/script-tag/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7f47c4dbb6b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..40aa72119a2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..5b04bb7402b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..a12343aa07f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+FAIL The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker" >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ae0ad649a98 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via shared-worker using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "shared-worker", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ea1d43c51dc >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/shared-worker/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..c6c2bf36c9b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..3ba347771a9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..95fa24f9e6e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..59b3752c8ea >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..113b0d05e70 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via worker-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "worker-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..83ba96bebf8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/worker-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..af9f72d5bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..64288b1e041 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1bcc32429c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/keep-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..76a388b62df >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..ffbe9ac4f5e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..874bfad5cba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/no-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >new file mode 100644 >index 00000000000..8fc43fc7ff1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >new file mode 100644 >index 00000000000..9ad749f8bb9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an http >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "http", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..1d73f959fe8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-http/xhr-request/swap-origin-redirect/insecure-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d6277eb34db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..3a835f52f19 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via a-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "a-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..7fab8749bd3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/a-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..37f60a4a1fd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..40913eb625e >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..d727078fac8 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..25011a38355 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..51f1548b7db >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fb7147b337b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..ec7c61f8243 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..ffcee216c78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via fetch-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "fetch-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..40a8d691b3f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/fetch-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f166b2b08fb >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..049adf5283a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..8d7748e1a75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..7addea4045c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..4e691492849 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..f6129bcc589 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..f52f9ba1a78 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,8 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..f1ac19a5577 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via iframe-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "iframe-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fb024e84309 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/iframe-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..0a1d3260c2a >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..30429e29c75 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..ea8983244ff >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..5fc5e7b31dd >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..b9a1580e15b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..3b5ee565bd5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..1e6778446ce >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,18 @@ >+ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (srcdoc iframe inherits parent) >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. (overridden by srcdoc iframe) >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..0f657ff1c19 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via img-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "img-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2e7911ee85d >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/img-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..15fa08d781c >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..63a2168789f >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..cf203a9cfe9 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..97d706d1481 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..131726e2bba >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..2438c593bb3 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..d8438b499f0 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..1fc3a147b80 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via script-tag using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "script-tag", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..de9e01197c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/script-tag/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..cce2a4ad651 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..623783a50c5 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with keep-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "keep-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..6330ff81fd1 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/keep-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..4c06d4b2d52 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..deb4e20c74b >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with no-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "no-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >new file mode 100644 >index 00000000000..fa33a6da2ad >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/no-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >new file mode 100644 >index 00000000000..af917847891 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http-expected.txt >@@ -0,0 +1,7 @@ >+ >+PASS The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin. >+ >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >new file mode 100644 >index 00000000000..8b315b207fa >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >@@ -0,0 +1,38 @@ >+<!DOCTYPE html> >+<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. --> >+<html> >+ <head> >+ <title>Referrer-Policy: Referrer Policy is not explicitly defined</title> >+ <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set."> >+ <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> >+ <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies"> >+ <meta name="assert" content="The referrer URL is stripped-referrer when a >+ document served over http requires an https >+ sub-resource via xhr-request using the meta-referrer >+ delivery method with swap-origin-redirect and when >+ the target request is same-origin."> >+ <script src="/resources/testharness.js"></script> >+ <script src="/resources/testharnessreport.js"></script> >+ <script src="/common/security-features/resources/common.js"></script> >+ <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script> >+ </head> >+ <body> >+ <script> >+ ReferrerPolicyTestCase( >+ { >+ "referrer_policy": null, >+ "delivery_method": "meta-referrer", >+ "redirection": "swap-origin-redirect", >+ "origin": "same-origin", >+ "source_protocol": "http", >+ "target_protocol": "https", >+ "subresource": "xhr-request", >+ "referrer_url": "stripped-referrer" >+ }, >+ document.querySelector("meta[name=assert]").content, >+ new SanityChecker() >+ ).start(); >+ </script> >+ <div id="log"></div> >+ </body> >+</html> >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >new file mode 100644 >index 00000000000..16b9f95d652 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/w3c-import.log >@@ -0,0 +1,17 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/unset-referrer-policy/meta-referrer/same-origin/http-https/xhr-request/swap-origin-redirect/upgrade-protocol.http.html >diff --git a/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/w3c-import.log >new file mode 100644 >index 00000000000..81acc6659b2 >--- /dev/null >+++ b/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/w3c-import.log >@@ -0,0 +1,20 @@ >+The tests in this directory were imported from the W3C repository. >+Do NOT modify these tests directly in WebKit. >+Instead, create a pull request on the WPT github: >+ https://github.com/web-platform-tests/wpt >+ >+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport >+ >+Do NOT modify or remove this file. >+ >+------------------------------------------------------------------------ >+Properties requiring vendor prefixes: >+None >+Property values requiring vendor prefixes: >+None >+------------------------------------------------------------------------ >+List of files: >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/META.yml >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/README.md >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/spec.src.json >+/LayoutTests/imported/w3c/web-platform-tests/referrer-policy/spec_json.js
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197321
:
368344
|
368358
|
368361
|
368368
|
368391
|
368395
| 368680